/** @file\r
\r
-Copyright (c) 2005 - 2010, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2005 - 2010, 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
http://opensource.org/licenses/bsd-license.php\r
\r
#include "Ip4Impl.h"\r
\r
-EFI_IPSEC_PROTOCOL *mIpSec = NULL;\r
+EFI_IPSEC2_PROTOCOL *mIpSec = NULL;\r
\r
/**\r
Gets the current operational settings for this instance of the EFI IPv4 Protocol driver.\r
}\r
}\r
\r
- if (MnpConfigData != NULL) {\r
- CopyMem (MnpConfigData, &IpSb->MnpConfigData, sizeof (*MnpConfigData));\r
- }\r
-\r
- if (SnpModeData != NULL) {\r
- CopyMem (SnpModeData, &IpSb->SnpMode, sizeof (*SnpModeData));\r
- }\r
+ //\r
+ // Get fresh mode data from MNP, since underlying media status may change\r
+ //\r
+ Status = IpSb->Mnp->GetModeData (IpSb->Mnp, MnpConfigData, SnpModeData);\r
\r
gBS->RestoreTPL (OldTpl);\r
- return EFI_SUCCESS;\r
+ return Status;\r
}\r
\r
\r
}\r
\r
if (Current->UseDefaultAddress && IP4_NO_MAPPING (IpInstance)) {\r
- return EFI_NO_MAPPING;\r
+ Status = EFI_NO_MAPPING;\r
+ goto ON_EXIT;\r
}\r
}\r
}\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
Ip4TokenExist (\r
IN NET_MAP *Map,\r
IN NET_MAP_ITEM *Item,\r
\r
**/\r
VOID\r
+EFIAPI\r
Ip4FreeTxToken (\r
IN VOID *Context\r
)\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
Ip4CancelTxTokens (\r
IN NET_MAP *Map,\r
IN NET_MAP_ITEM *Item,\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
Ip4CancelRxTokens (\r
IN NET_MAP *Map,\r
IN NET_MAP_ITEM *Item,\r
\r
**/\r
EFI_STATUS\r
+EFIAPI\r
Ip4SentPacketTicking (\r
IN NET_MAP *Map,\r
IN NET_MAP_ITEM *Item,\r