\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
**/\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
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
@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
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
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
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