From 76e6ebd64eb1c59f2ba4c0d0e3cef8beb65783b2 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 1 Sep 2000 16:38:53 +0000 Subject: 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 --- sys/netinet/libalias/alias.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/netinet/libalias') diff --git a/sys/netinet/libalias/alias.c b/sys/netinet/libalias/alias.c index 7689e90b6ea12..636b13ae8545e 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; -- cgit v1.3