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
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
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
\r
-mIp4SupportedIcmp [23] = {\r
- {ICMP_ECHO_REPLY, ICMP_DEFAULT_CODE },\r
-\r
- {ICMP_DEST_UNREACHABLE, ICMP_NET_UNREACHABLE },\r
- {ICMP_DEST_UNREACHABLE, ICMP_HOST_UNREACHABLE },\r
- {ICMP_DEST_UNREACHABLE, ICMP_PROTO_UNREACHABLE },\r
- {ICMP_DEST_UNREACHABLE, ICMP_PORT_UNREACHABLE },\r
- {ICMP_DEST_UNREACHABLE, ICMP_FRAGMENT_FAILED },\r
- {ICMP_DEST_UNREACHABLE, ICMP_SOURCEROUTE_FAILED},\r
- {ICMP_DEST_UNREACHABLE, ICMP_NET_UNKNOWN },\r
- {ICMP_DEST_UNREACHABLE, ICMP_HOST_UNKNOWN },\r
- {ICMP_DEST_UNREACHABLE, ICMP_SOURCE_ISOLATED },\r
- {ICMP_DEST_UNREACHABLE, ICMP_NET_PROHIBITED },\r
- {ICMP_DEST_UNREACHABLE, ICMP_HOST_PROHIBITED },\r
+mIp4SupportedIcmp[23] = {\r
+ {ICMP_ECHO_REPLY, ICMP_DEFAULT_CODE },\r
+\r
+ {ICMP_DEST_UNREACHABLE, ICMP_NET_UNREACHABLE },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_HOST_UNREACHABLE },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_PROTO_UNREACHABLE },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_PORT_UNREACHABLE },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_FRAGMENT_FAILED },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_SOURCEROUTE_FAILED },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_NET_UNKNOWN },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_HOST_UNKNOWN },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_SOURCE_ISOLATED },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_NET_PROHIBITED },\r
+ {ICMP_DEST_UNREACHABLE, ICMP_HOST_PROHIBITED },\r
{ICMP_DEST_UNREACHABLE, ICMP_NET_UNREACHABLE_TOS },\r
{ICMP_DEST_UNREACHABLE, ICMP_HOST_UNREACHABLE_TOS},\r
\r
{ICMP_DEST_UNREACHABLE, ICMP_NET_UNREACHABLE_TOS },\r
{ICMP_DEST_UNREACHABLE, ICMP_HOST_UNREACHABLE_TOS},\r
\r
- {ICMP_REDIRECT, ICMP_NET_REDIRECT },\r
- {ICMP_REDIRECT, ICMP_HOST_REDIRECT },\r
- {ICMP_REDIRECT, ICMP_NET_TOS_REDIRECT },\r
- {ICMP_REDIRECT, ICMP_HOST_TOS_REDIRECT },\r
+ {ICMP_REDIRECT, ICMP_NET_REDIRECT },\r
+ {ICMP_REDIRECT, ICMP_HOST_REDIRECT },\r
+ {ICMP_REDIRECT, ICMP_NET_TOS_REDIRECT },\r
+ {ICMP_REDIRECT, ICMP_HOST_TOS_REDIRECT },\r
- {ICMP_TIME_EXCEEDED, ICMP_TIMEOUT_IN_TRANSIT},\r
- {ICMP_TIME_EXCEEDED, ICMp_TIMEOUT_REASSEMBLE},\r
+ {ICMP_TIME_EXCEEDED, ICMP_TIMEOUT_IN_TRANSIT },\r
+ {ICMP_TIME_EXCEEDED, ICMP_TIMEOUT_REASSEMBLE },\r
All kinds of redirect is treated as host redirect as\r
specified by RFC1122 3.3.1.2:\r
"Since the subnet mask appropriate to the destination\r
All kinds of redirect is treated as host redirect as\r
specified by RFC1122 3.3.1.2:\r
"Since the subnet mask appropriate to the destination\r
- @param IpSb The IP4 service binding instance that received the\r
- packet\r
- @param Head The IP head of the received ICMPpacket.\r
- @param Packet The content of the ICMP redirect packet with IP\r
+ @param[in] IpSb The IP4 service binding instance that received \r
+ the packet.\r
+ @param[in] Head The IP head of the received ICMPpacket.\r
+ @param[in] Packet The content of the ICMP redirect packet with IP\r
- CacheEntry = Ip4FindRouteCache (\r
- Ip4Instance->RouteTable,\r
- NTOHL (Icmp->IpHead.Dst),\r
- NTOHL (Icmp->IpHead.Src)\r
- );\r
+ Dst = NTOHL (Icmp->IpHead.Dst);\r
+ Src = NTOHL (Icmp->IpHead.Src);\r
+ CacheEntry = Ip4FindRouteCache (Ip4Instance->RouteTable, Dst, Src);\r
- @param IpSb The IP service that received the packet.\r
- @param Head The IP head of the ICMP error packet\r
- @param Packet The content of the ICMP error with IP head\r
+ @param[in] IpSb The IP4 service that received the packet.\r
+ @param[in] Head The IP4 head of the ICMP error packet\r
+ @param[in] Packet The content of the ICMP error with IP4 head\r
- @param IpSb The IP service that receivd the packet\r
- @param Head The IP head of the ICMP error packet\r
- @param Packet The content of the ICMP error with IP head\r
+ @param[in] IpSb The IP4 service that receivd the packet\r
+ @param[in] Head The IP4 head of the ICMP error packet\r
+ @param[in] Packet The content of the ICMP error with IP4 head\r
Icmp->Head.Type = ICMP_ECHO_REPLY;\r
Icmp->Head.Checksum = 0;\r
Icmp->Head.Checksum = (UINT16) (~NetblockChecksum ((UINT8 *) Icmp, Data->TotalSize));\r
Icmp->Head.Type = ICMP_ECHO_REPLY;\r
Icmp->Head.Checksum = 0;\r
Icmp->Head.Checksum = (UINT16) (~NetblockChecksum ((UINT8 *) Icmp, Data->TotalSize));\r
- @param IpSb The IP service that receivd the packet\r
- @param Head The IP head of the ICMP query packet\r
- @param Packet The content of the ICMP query with IP head\r
+ @param[in] IpSb The IP4 service that receivd the packet\r
+ @param[in] Head The IP4 head of the ICMP query packet\r
+ @param[in] Packet The content of the ICMP query with IP4 head\r
- @param IpSb The IP service that receivd the packet\r
- @param Head The IP head of the ICMP query packet\r
- @param Packet The content of the ICMP query with IP head\r
+ @param[in] IpSb The IP4 service that receivd the packet.\r
+ @param[in] Head The IP4 head of the ICMP query packet.\r
+ @param[in] Packet The content of the ICMP query with IP4 head\r