summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-02-16 01:25:06 +0000
committerwollman <wollman@FreeBSD.org>1995-02-16 01:25:06 +0000
commit021dfc17d7bbe6fde6fa0a091b45c0b21655fefa (patch)
tree6b3a5858b5c399fed8dbeb73804e47e42cad84c7 /sys/netinet/udp_usrreq.c
parent2d9bdef5534f858e9f5c0b38d45d3278cdfc3c2c (diff)
downloadFreeBSD-src-021dfc17d7bbe6fde6fa0a091b45c0b21655fefa.zip
FreeBSD-src-021dfc17d7bbe6fde6fa0a091b45c0b21655fefa.tar.gz
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
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index c34e470..ee62439 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 <sys/param.h>
@@ -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;
}
OpenPOWER on IntegriCloud