summaryrefslogtreecommitdiffstats
path: root/sys/contrib
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-10-18 11:36:09 +0000
committerru <ru@FreeBSD.org>2000-10-18 11:36:09 +0000
commit75996829e6e2474ef631772453e403a8e1536d8e (patch)
tree8c35e2aa40b3823446e79b2a4a3736bf8570f810 /sys/contrib
parente6ed2cfb6c20d5b51bbc6ab288d8ba920dc1c1ac (diff)
downloadFreeBSD-src-75996829e6e2474ef631772453e403a8e1536d8e.zip
FreeBSD-src-75996829e6e2474ef631772453e403a8e1536d8e.tar.gz
If we do not byte-swap the ip_id in the first place, don't do it in
the second. NetBSD (from where I've taken this originally) needs to fix this too.
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_fil.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_fil.c b/sys/contrib/ipfilter/netinet/ip_fil.c
index d609f25..27aca2f 100644
--- a/sys/contrib/ipfilter/netinet/ip_fil.c
+++ b/sys/contrib/ipfilter/netinet/ip_fil.c
@@ -1381,7 +1381,9 @@ frdest_t *fdp;
error = (*ifp->if_output)(ifp, m, (struct sockaddr *)dst,
ro->ro_rt);
if (i) {
+# ifndef __FreeBSD__
ip->ip_id = ntohs(ip->ip_id);
+# endif
ip->ip_len = ntohs(ip->ip_len);
ip->ip_off = ntohs(ip->ip_off);
}
OpenPOWER on IntegriCloud