]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Output.c
Scrubbed more.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Output.c
index 4007a4a930c286c76553d8585257f9ef14b58618..70bdba10d36ecb665c65faa72236cfbc9155b3df 100644 (file)
@@ -31,7 +31,7 @@ UINT16  mIp4Id;
 \r
   @param  Packet               The packet to prepend IP4 header to\r
   @param  Head                 The caller supplied header. The caller should set\r
 \r
   @param  Packet               The packet to prepend IP4 header to\r
   @param  Head                 The caller supplied header. The caller should set\r
-                               the  following header fields: Tos, TotalLen, Id,\r
+                               the following header fields: Tos, TotalLen, Id,\r
                                Fragment, Ttl, Protocol, Src and Dst. All the fields\r
                                are in host byte order. This function will fill in\r
                                the Ver, HeadLen, and checksum.\r
                                Fragment, Ttl, Protocol, Src and Dst. All the fields\r
                                are in host byte order. This function will fill in\r
                                the Ver, HeadLen, and checksum.\r
@@ -45,10 +45,10 @@ UINT16  mIp4Id;
 **/\r
 EFI_STATUS\r
 Ip4PrependHead (\r
 **/\r
 EFI_STATUS\r
 Ip4PrependHead (\r
-  IN NET_BUF                *Packet,\r
-  IN IP4_HEAD               *Head,\r
-  IN UINT8                  *Option,\r
-  IN UINT32                 OptLen\r
+  IN OUT NET_BUF                *Packet,\r
+  IN     IP4_HEAD               *Head,\r
+  IN     UINT8                  *Option,\r
+  IN     UINT32                 OptLen\r
   )\r
 {\r
   UINT32                    HeadLen;\r
   )\r
 {\r
   UINT32                    HeadLen;\r
@@ -65,7 +65,7 @@ Ip4PrependHead (
   Ip4CopyOption (Option, OptLen, FirstFragment, NULL, &Len);\r
 \r
   HeadLen = IP4_MIN_HEADLEN + Len;\r
   Ip4CopyOption (Option, OptLen, FirstFragment, NULL, &Len);\r
 \r
   HeadLen = IP4_MIN_HEADLEN + Len;\r
-  ASSERT (((Len %4) == 0) && (HeadLen <= IP4_MAX_HEADLEN));\r
+  ASSERT (((Len % 4) == 0) && (HeadLen <= IP4_MAX_HEADLEN));\r
 \r
   PacketHead = (IP4_HEAD *) NetbufAllocSpace (Packet, HeadLen, NET_BUF_HEAD);\r
 \r
 \r
   PacketHead = (IP4_HEAD *) NetbufAllocSpace (Packet, HeadLen, NET_BUF_HEAD);\r
 \r
@@ -106,7 +106,7 @@ Ip4PrependHead (
   @param  Src                  The source of the packet\r
 \r
   @return NULL if no proper interface is found, otherwise the interface that\r
   @param  Src                  The source of the packet\r
 \r
   @return NULL if no proper interface is found, otherwise the interface that\r
-  @return can be used to send the system packet from.\r
+          can be used to send the system packet from.\r
 \r
 **/\r
 IP4_INTERFACE *\r
 \r
 **/\r
 IP4_INTERFACE *\r
@@ -197,7 +197,7 @@ Ip4SysPacketSent (
                                NULL if the packet is from the system.\r
   @param  Packet               The user data to send, excluding the IP header.\r
   @param  Head                 The caller supplied header. The caller should set\r
                                NULL if the packet is from the system.\r
   @param  Packet               The user data to send, excluding the IP header.\r
   @param  Head                 The caller supplied header. The caller should set\r
-                               the  following header fields: Tos, TotalLen, Id, tl,\r
+                               the following header fields: Tos, TotalLen, Id, tl,\r
                                Fragment, Protocol, Src and Dst. All the fields are\r
                                in host byte  order. This function will fill in the\r
                                Ver, HeadLen,  Fragment, and checksum. The Fragment\r
                                Fragment, Protocol, Src and Dst. All the fields are\r
                                in host byte  order. This function will fill in the\r
                                Ver, HeadLen,  Fragment, and checksum. The Fragment\r
@@ -269,8 +269,8 @@ Ip4Output (
     if (IP4_IS_BROADCAST (Ip4GetNetCast (Dest, IpIf)) || (Dest == IP4_ALLONE_ADDRESS)) {\r
       //\r
       // Set the gateway to local broadcast if the Dest is\r
     if (IP4_IS_BROADCAST (Ip4GetNetCast (Dest, IpIf)) || (Dest == IP4_ALLONE_ADDRESS)) {\r
       //\r
       // Set the gateway to local broadcast if the Dest is\r
-      // is the broadcast address for the connected network\r
-      // or it is local broadcast.\r
+      // the broadcast address for the connected network or\r
+      // it is local broadcast.\r
       //\r
       GateWay = IP4_ALLONE_ADDRESS;\r
 \r
       //\r
       GateWay = IP4_ALLONE_ADDRESS;\r
 \r
@@ -423,8 +423,8 @@ ON_ERROR:
 **/\r
 BOOLEAN\r
 Ip4CancelPacketFragments (\r
 **/\r
 BOOLEAN\r
 Ip4CancelPacketFragments (\r
-  IP4_LINK_TX_TOKEN   *Frame,\r
-  VOID                *Context\r
+  IN IP4_LINK_TX_TOKEN   *Frame,\r
+  IN VOID                *Context\r
   )\r
 {\r
   if ((Frame->Packet == (NET_BUF *) Context) || (Frame->Context == Context)) {\r
   )\r
 {\r
   if ((Frame->Packet == (NET_BUF *) Context) || (Frame->Context == Context)) {\r