Match IPPROTO_ICMP with IP protocol field of the original IP

datagram embedded into ICMP error message, not with protocol
field of ICMP message itself (which is always IPPROTO_ICMP).

Pointed by:	Erik Salander <erik@whistle.com>
This commit is contained in:
Ruslan Ermilov 2000-09-01 16:38:53 +00:00
parent ca94dd37a3
commit 76e6ebd64e
2 changed files with 4 additions and 4 deletions

View File

@ -357,7 +357,7 @@ fragment contained in ICMP data section */
ip->ip_src = original_address;
ud->uh_sport = original_port;
}
else if (pip->ip_p == IPPROTO_ICMP)
else if (ip->ip_p == IPPROTO_ICMP)
{
u_short *sptr;
int accumulate;
@ -556,7 +556,7 @@ fragment contained in ICMP data section */
ip->ip_dst = alias_address;
ud->uh_dport = alias_port;
}
else if (pip->ip_p == IPPROTO_ICMP)
else if (ip->ip_p == IPPROTO_ICMP)
{
u_short *sptr;
int accumulate;

View File

@ -357,7 +357,7 @@ fragment contained in ICMP data section */
ip->ip_src = original_address;
ud->uh_sport = original_port;
}
else if (pip->ip_p == IPPROTO_ICMP)
else if (ip->ip_p == IPPROTO_ICMP)
{
u_short *sptr;
int accumulate;
@ -556,7 +556,7 @@ fragment contained in ICMP data section */
ip->ip_dst = alias_address;
ud->uh_dport = alias_port;
}
else if (pip->ip_p == IPPROTO_ICMP)
else if (ip->ip_p == IPPROTO_ICMP)
{
u_short *sptr;
int accumulate;