From 9bb8795d714adac2189d22b6e93ec6e3b5278d59 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Thu, 16 Feb 1995 01:25:06 +0000 Subject: [PATCH] Don't add back in the IP header length to ip_len; icmp_error will do it for us. Obtained from: Stevens, vol. 2, p. 774 --- sys/netinet/udp_usrreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index c34e470b26bc..ee624392a787 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)udp_usrreq.c 8.4 (Berkeley) 1/21/94 - * $Id: udp_usrreq.c,v 1.4 1994/10/02 17:48:45 phk Exp $ + * $Id: udp_usrreq.c,v 1.5 1995/02/16 00:27:46 wollman Exp $ */ #include @@ -265,7 +265,6 @@ udp_input(m, iphlen) goto bad; } *ip = save_ip; - ip->ip_len += iphlen; icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_PORT, 0, 0); return; }