/** @file\r
Implement IP4 pesudo interface.\r
\r
-Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2017, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
{\r
EFI_ARP_CONFIG_DATA ArpConfig;\r
EFI_STATUS Status;\r
- INTN Len;\r
\r
NET_CHECK_SIGNATURE (Interface, IP4_INTERFACE_SIGNATURE);\r
\r
- Len = NetGetMaskLength (SubnetMask);\r
- if (Len == IP4_MASK_NUM) {\r
- return EFI_INVALID_PARAMETER;\r
- }\r
-\r
//\r
// Set the ip/netmask, then compute the subnet broadcast\r
// and network broadcast for easy access. When computing\r
\r
Status = Interface->Mnp->Transmit (Interface->Mnp, &Token->MnpToken);\r
if (EFI_ERROR (Status)) {\r
- RemoveEntryList (Entry);\r
+ RemoveEntryList (&Token->Link);\r
Token->CallBack (Token->IpInstance, Token->Packet, Status, 0, Token->Context);\r
\r
Ip4FreeLinkTxToken (Token);\r
InsertTailList (&Interface->SentFrames, &Token->Link);\r
Status = Interface->Mnp->Transmit (Interface->Mnp, &Token->MnpToken);\r
if (EFI_ERROR (Status)) {\r
- RemoveEntryList (&Interface->SentFrames);\r
+ RemoveEntryList (&Token->Link);\r
goto ON_ERROR;\r
}\r
\r