diff options
author | ru <ru@FreeBSD.org> | 2000-09-01 16:38:53 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-09-01 16:38:53 +0000 |
commit | c183e5be0ac38273a7a544f6699e1932310139fe (patch) | |
tree | 800bda859c3d90c48af3f4a77fd84647a5768bb0 /sys/netinet/libalias/alias.c | |
parent | 544bd2525594074ab0e2382ae108039d202773e6 (diff) | |
download | FreeBSD-src-c183e5be0ac38273a7a544f6699e1932310139fe.zip FreeBSD-src-c183e5be0ac38273a7a544f6699e1932310139fe.tar.gz |
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>
Diffstat (limited to 'sys/netinet/libalias/alias.c')
-rw-r--r-- | sys/netinet/libalias/alias.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/libalias/alias.c b/sys/netinet/libalias/alias.c index 7689e90..636b13a 100644 --- a/sys/netinet/libalias/alias.c +++ b/sys/netinet/libalias/alias.c @@ -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; |