aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2019-01-10 23:27:29 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2019-01-10 23:27:29 +0000
commit49d9607a1246e762f6bd4b6b99d7b618fab0f7c1 (patch)
treecd560222fb416faaf9ce3d079830e04a30e51f01 /sys
parent8304f1265f05fc5cfb45a5956c5441bf04f58818 (diff)
downloadsrc-49d9607a1246e762f6bd4b6b99d7b618fab0f7c1.tar.gz
src-49d9607a1246e762f6bd4b6b99d7b618fab0f7c1.zip
Remove support for FreeBSD 9 kernel, which used to change byte order
of packet headers.
Notes
Notes: svn path=/head/; revision=342922
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_fil_freebsd.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c b/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
index 88e95064ebbe..309027b500cc 100644
--- a/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
+++ b/sys/contrib/ipfilter/netinet/ip_fil_freebsd.c
@@ -132,24 +132,10 @@ ipf_check_wrapper(void *arg, struct mbuf **mp, struct ifnet *ifp, int dir)
struct ip *ip = mtod(*mp, struct ip *);
int rv;
- /*
- * IPFilter expects evreything in network byte order
- */
-#if (__FreeBSD_version < 1000019)
- ip->ip_len = htons(ip->ip_len);
- ip->ip_off = htons(ip->ip_off);
-#endif
CURVNET_SET(ifp->if_vnet);
rv = ipf_check(&V_ipfmain, ip, ip->ip_hl << 2, ifp, (dir == PFIL_OUT),
mp);
CURVNET_RESTORE();
-#if (__FreeBSD_version < 1000019)
- if ((rv == 0) && (*mp != NULL)) {
- ip = mtod(*mp, struct ip *);
- ip->ip_len = ntohs(ip->ip_len);
- ip->ip_off = ntohs(ip->ip_off);
- }
-#endif
return rv;
}