diff options
-rw-r--r-- | sys/contrib/ipfilter/netinet/ip_fil.c | 2 | ||||
-rw-r--r-- | sys/netinet/ip_fil.c | 2 |
2 files changed, 4 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); } diff --git a/sys/netinet/ip_fil.c b/sys/netinet/ip_fil.c index d609f25..27aca2f 100644 --- a/sys/netinet/ip_fil.c +++ b/sys/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); } |