diff options
author | ru <ru@FreeBSD.org> | 2000-09-14 14:42:04 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-09-14 14:42:04 +0000 |
commit | 92269e49c439d44bb3b525cc86f3a6f60cae7ed9 (patch) | |
tree | 2dfe0c58d20b6967465953a458c9b0f221773ac8 /sys/netinet/ip_input.c | |
parent | fa323bab500d3be5a6e06a3d4ef11da85244efbe (diff) | |
download | FreeBSD-src-92269e49c439d44bb3b525cc86f3a6f60cae7ed9.zip FreeBSD-src-92269e49c439d44bb3b525cc86f3a6f60cae7ed9.tar.gz |
Follow BSD/OS and NetBSD, keep the ip_id field in network order all the time.
Requested by: wollman
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r-- | sys/netinet/ip_input.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index 5ba5750..bd04b01 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -346,7 +346,6 @@ ip_input(struct mbuf *m) ipstat.ips_badlen++; goto bad; } - NTOHS(ip->ip_id); NTOHS(ip->ip_off); /* @@ -692,10 +691,8 @@ found: ip->ip_len += hlen; HTONS(ip->ip_len); HTONS(ip->ip_off); - HTONS(ip->ip_id); ip->ip_sum = 0; ip->ip_sum = in_cksum_hdr(ip); - NTOHS(ip->ip_id); NTOHS(ip->ip_off); NTOHS(ip->ip_len); ip->ip_len -= hlen; @@ -725,7 +722,6 @@ found: ip->ip_len += hlen; HTONS(ip->ip_len); HTONS(ip->ip_off); - HTONS(ip->ip_id); /* Deliver packet to divert input routine */ ip_divert_cookie = divert_cookie; |