]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.h
MdeModulePkg/Network: Fix potential ASSERT if NetIp4IsUnicast is called
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Config2Impl.h
index 77bdc8dcb645ccd067726fc4edff8f2d95df3934..a431f6f732cdc6f0ae1dfc17761e29609041d278 100644 (file)
 #define DATA_ATTRIB_SIZE_FIXED              0x1\r
 #define DATA_ATTRIB_VOLATILE                0x2\r
 \r
-#define DHCP_TAG_PARA_LIST             55\r
-#define DHCP_TAG_NETMASK               1\r
-#define DHCP_TAG_ROUTER                3\r
-#define DHCP_TAG_DNS_SERVER            6\r
-\r
 #define DATA_ATTRIB_SET(Attrib, Bits)       (BOOLEAN)((Attrib) & (Bits))\r
 #define SET_DATA_ATTRIB(Attrib, Bits)       ((Attrib) |= (Bits))\r
+#define REMOVE_DATA_ATTRIB(Attrib, Bits)    ((Attrib) &= (~Bits))\r
 \r
 typedef struct _IP4_CONFIG2_INSTANCE IP4_CONFIG2_INSTANCE;\r
 \r
@@ -202,7 +198,7 @@ struct _IP4_CONFIG2_INSTANCE {
 \r
 //\r
 // Configure the DHCP to request the routers and netmask\r
-// from server. The DHCP_TAG_NETMASK is included in Head.\r
+// from server. The DHCP4_TAG_NETMASK is included in Head.\r
 //\r
 #pragma pack(1)\r
 typedef struct {\r
@@ -239,7 +235,7 @@ Ip4Config2ReadConfigData (
 \r
   @param[in]  Instance           The IP4 config2 instance to configure.\r
 \r
-  @retval EFI_SUCCESS            The auto configuration is successfull started.\r
+  @retval EFI_SUCCESS            The auto configuration is successfully started.\r
   @retval Others                 Failed to start auto configuration.\r
 \r
 **/\r