summaryrefslogtreecommitdiffstats
path: root/lib/libalias
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-09-01 16:38:53 +0000
committerru <ru@FreeBSD.org>2000-09-01 16:38:53 +0000
commitc183e5be0ac38273a7a544f6699e1932310139fe (patch)
tree800bda859c3d90c48af3f4a77fd84647a5768bb0 /lib/libalias
parent544bd2525594074ab0e2382ae108039d202773e6 (diff)
downloadFreeBSD-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 'lib/libalias')
-rw-r--r--lib/libalias/alias.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libalias/alias.c b/lib/libalias/alias.c
index 7689e90..636b13a 100644
--- a/lib/libalias/alias.c
+++ b/lib/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;
OpenPOWER on IntegriCloud