]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.h
Scrubbed more.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Input.h
index d44029d0858ef7f080587366675706f4488e4023..fcbfb01699602f4d4e46716a04add60e0bec6d49 100644 (file)
@@ -21,25 +21,25 @@ Abstract:
 #ifndef __EFI_IP4_INPUT_H__\r
 #define __EFI_IP4_INPUT_H__\r
 \r
-enum {\r
+typedef enum {\r
   IP4_MIN_HEADLEN       = 20,\r
   IP4_MAX_HEADLEN       = 60,\r
 \r
   IP4_ASSEMLE_HASH_SIZE = 31,\r
   IP4_FRAGMENT_LIFE     = 120,\r
   IP4_MAX_PACKET_SIZE   = 65535\r
-};\r
-\r
-//\r
-// Per packet information for input process. LinkFlag specifies whether\r
-// the packet is received as Link layer unicast, multicast or broadcast.\r
-// The CastType is the IP layer cast type, such as IP multicast or unicast.\r
-// Start, End and Length are staffs used to assemble the packets. Start\r
-// is the sequence number of the first byte of data in the packet. Length\r
-// is the number of bytes of data. End = Start + Length, that is, the\r
-// sequence number of last byte + 1. Each assembled packet has a count down\r
-// life. If it isn't consumed before Life reaches zero, the packet is released.\r
-//\r
+} IP4_INPUT_ENUM_TYPES;\r
+\r
+///\r
+/// Per packet information for input process. LinkFlag specifies whether\r
+/// the packet is received as Link layer unicast, multicast or broadcast.\r
+/// The CastType is the IP layer cast type, such as IP multicast or unicast.\r
+/// Start, End and Length are staffs used to assemble the packets. Start\r
+/// is the sequence number of the first byte of data in the packet. Length\r
+/// is the number of bytes of data. End = Start + Length, that is, the\r
+/// sequence number of last byte + 1. Each assembled packet has a count down\r
+/// life. If it isn't consumed before Life reaches zero, the packet is released.\r
+///\r
 typedef struct {\r
   UINTN                     LinkFlag;\r
   INTN                      CastType;\r
@@ -50,9 +50,9 @@ typedef struct {
   EFI_STATUS                Status;\r
 } IP4_CLIP_INFO;\r
 \r
-//\r
-// Structure used to assemble IP packets.\r
-//\r
+///\r
+/// Structure used to assemble IP packets.\r
+///\r
 typedef struct {\r
   LIST_ENTRY                Link;\r
 \r
@@ -74,11 +74,11 @@ typedef struct {
   INTN                      Life;       // Count down life for the packet.\r
 } IP4_ASSEMBLE_ENTRY;\r
 \r
-//\r
-// Each Ip service instance has an assemble table to reassemble\r
-// the packets before delivery to its children. It is organized\r
-// as hash table.\r
-//\r
+///\r
+/// Each Ip service instance has an assemble table to reassemble\r
+/// the packets before delivery to its children. It is organized\r
+/// as hash table.\r
+///\r
 typedef struct {\r
   LIST_ENTRY      Bucket[IP4_ASSEMLE_HASH_SIZE];\r
 } IP4_ASSEMBLE_TABLE;\r