summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 3c68442cbd6..27d271e8507 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_input.c,v 1.40 1999/04/23 15:18:03 provos Exp $ */
+/* $OpenBSD: ip_input.c,v 1.41 1999/09/23 07:20:35 deraadt Exp $ */
/* $NetBSD: ip_input.c,v 1.30 1996/03/16 23:53:58 christos Exp $ */
/*
@@ -1265,8 +1265,6 @@ ip_forward(m, srcrt)
}
HTONS(ip->ip_id);
if (ip->ip_ttl <= IPTTLDEC) {
- HTONS(ip->ip_off);
- HTONS(ip->ip_len);
icmp_error(m, ICMP_TIMXCEED, ICMP_TIMXCEED_INTRANS, dest, 0);
return;
}
@@ -1285,8 +1283,6 @@ ip_forward(m, srcrt)
rtalloc(&ipforward_rt);
if (ipforward_rt.ro_rt == 0) {
- HTONS(ip->ip_off);
- HTONS(ip->ip_len);
icmp_error(m, ICMP_UNREACH, ICMP_UNREACH_HOST, dest, 0);
return;
}
@@ -1380,8 +1376,6 @@ ip_forward(m, srcrt)
}
ip = mtod(mcopy, struct ip *);
- HTONS(ip->ip_off);
- HTONS(ip->ip_len);
icmp_error(mcopy, type, code, dest, destifp);
}