]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Include/Library/NetLib.h
Add OPTIONAL attribute to parameter ‘ImageHandle’ in NetLibGetMacString to benefit...
[mirror_edk2.git] / MdeModulePkg / Include / Library / NetLib.h
index f1c6595a0d615e11edc8c34fb2820b0a19071a60..fa59254a25405797f0374e05cd15640ca42b2d95 100644 (file)
@@ -2,7 +2,7 @@
   This library is only intended to be used by UEFI network stack modules.\r
   It provides basic functions for the UEFI network stack.\r
 \r
-Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2005 - 2012, 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<BR>\r
@@ -61,6 +61,8 @@ typedef UINT16          TCP_PORTNO;
 #define  IP_VERSION_4          4\r
 #define  IP_VERSION_6          6\r
 \r
+#define  IP6_PREFIX_LENGTH     64\r
+\r
 #pragma pack(1)\r
 \r
 //\r
@@ -1085,7 +1087,8 @@ NetLibGetMacAddress (
   @param[in]   ServiceHandle         The handle where network service binding protocol is\r
                                      installed.\r
   @param[in]   ImageHandle           The image handle used to act as the agent handle to\r
-                                     get the simple network protocol.\r
+                                     get the simple network protocol. This parameter is\r
+                                     optional and may be NULL.\r
   @param[out]  MacString             The pointer to store the address of the string\r
                                      representation of  the mac address.\r
 \r
@@ -1098,7 +1101,7 @@ EFI_STATUS
 EFIAPI\r
 NetLibGetMacString (\r
   IN  EFI_HANDLE            ServiceHandle,\r
-  IN  EFI_HANDLE            ImageHandle,\r
+  IN  EFI_HANDLE            ImageHandle, OPTIONAL\r
   OUT CHAR16                **MacString\r
   );\r
 \r