aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2000-10-25 10:56:41 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2000-10-25 10:56:41 +0000
commit8829f4ee0bad754425500b5e4b664123cd8a7948 (patch)
treed397b3af2a17689a159c44fa47ed39c954429f93 /sys/netinet
parentfbdfe156202316d02747adbccb61abee12b45e0f (diff)
downloadsrc-8829f4ee0bad754425500b5e4b664123cd8a7948.tar.gz
src-8829f4ee0bad754425500b5e4b664123cd8a7948.zip
We now keep the ip_id field in network byte order all the
time, so there is no need to make the distinction between ip_output() and ip_input() cases. Reviewed by: silence on freebsd-net
Notes
Notes: svn path=/head/; revision=67564
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/fil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netinet/fil.c b/sys/netinet/fil.c
index e28f855b68f1..1fb4b6cf6742 100644
--- a/sys/netinet/fil.c
+++ b/sys/netinet/fil.c
@@ -825,12 +825,14 @@ int out;
# endif
#endif /* _KERNEL */
+#ifndef __FreeBSD__
/*
* Be careful here: ip_id is in network byte order when called
* from ip_output()
*/
if ((out) && (v == 4))
ip->ip_id = ntohs(ip->ip_id);
+#endif
changed = 0;
fin->fin_v = v;
@@ -1037,8 +1039,10 @@ logit:
}
#endif /* IPFILTER_LOG */
+#ifndef __FreeBSD__
if ((out) && (v == 4))
ip->ip_id = htons(ip->ip_id);
+#endif
#ifdef _KERNEL
/*