aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDarren Reed <darrenr@FreeBSD.org>2001-07-30 10:53:23 +0000
committerDarren Reed <darrenr@FreeBSD.org>2001-07-30 10:53:23 +0000
commit31f3bf83f64dd82b5fa1999979833beb1e883e23 (patch)
treed7779cd3b1d5771683d6dc563e1d9469fb205c19 /sys
parentaf1852503e7c2923994d02296f2dc24bd4ff4929 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_frag.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_frag.c b/sys/contrib/ipfilter/netinet/ip_frag.c
index f9a8d9e3c289..622d0cc5816d 100644
--- a/sys/contrib/ipfilter/netinet/ip_frag.c
+++ b/sys/contrib/ipfilter/netinet/ip_frag.c
@@ -3,7 +3,6 @@
*
* See the IPFILTER.LICENCE file for details on licencing.
*/
-
#if defined(KERNEL) && !defined(_KERNEL)
# define _KERNEL
#endif
@@ -281,9 +280,6 @@ ipfr_t *table[];
ipfr_t *f, frag;
u_int idx;
- if (!(fin->fin_fi.fi_fl & FI_FRAG))
- return NULL;
-
/*
* For fragments, we record protocol, packet id, TOS and both IP#'s
* (these should all be the same for all fragments of a packet).
@@ -315,15 +311,16 @@ ipfr_t *table[];
IPFR_CMPSZ)) {
u_short atoff, off;
+ off = fin->fin_off;
+
/*
* XXX - We really need to be guarding against the
* retransmission of (src,dst,id,offset-range) here
* because a fragmented packet is never resent with
* the same IP ID#.
*/
- off = ip->ip_off & IP_OFFMASK;
if (f->ipfr_seen0) {
- if (!off || (fin->fin_fi.fi_fl & FI_SHORT))
+ if (!off || (fin->fin_fl & FI_SHORT))
continue;
} else if (!off)
f->ipfr_seen0 = 1;