]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.h
MdeModulePkg: Fix issue about current Ip4Dxe implementation for DHCP DORA process
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Option.h
index 206c92031dfe6d0aeb210fabf1a81d713e4efc5f..f9c65d026d6b34344152060a7fb025fbfc2d5a44 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
   IP4 option support routines.\r
   \r
-Copyright (c) 2005 - 2006, Intel Corporation.<BR>\r
-All rights reserved. This program and the accompanying materials\r
+Copyright (c) 2005 - 2009, 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
@@ -15,15 +15,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 #ifndef __EFI_IP4_OPTION_H__\r
 #define __EFI_IP4_OPTION_H__\r
 \r
-typedef enum {\r
-  IP4_OPTION_EOP       = 0,\r
-  IP4_OPTION_NOP       = 1,\r
-  IP4_OPTION_LSRR      = 131,  // Loss source and record routing,   10000011\r
-  IP4_OPTION_SSRR      = 137,  // Strict source and record routing, 10001001\r
-  IP4_OPTION_RR        = 7,    // Record routing, 00000111\r
+#define IP4_OPTION_EOP        0\r
+#define IP4_OPTION_NOP        1\r
+#define IP4_OPTION_LSRR       131  // Loss source and record routing,   10000011\r
+#define IP4_OPTION_SSRR       137  // Strict source and record routing, 10001001\r
+#define IP4_OPTION_RR         7    // Record routing, 00000111\r
 \r
-  IP4_OPTION_COPY_MASK = 0x80\r
-} IP4_OPTION_ENUM_TYPES;\r
+#define IP4_OPTION_COPY_MASK  0x80\r
 \r
 /**\r
   Validate the IP4 option format for both the packets we received\r