summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_input.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1996-12-11 03:26:36 +0000
committerdg <dg@FreeBSD.org>1996-12-11 03:26:36 +0000
commitca970b266b69425921732f484663addf066a6cbf (patch)
tree26f1edf0be0bf26cc314201f377dd6d5c149636c /sys/netinet/ip_input.c
parent560cc4d01b787ce25c611e6d5dc5f0b45cf40246 (diff)
downloadFreeBSD-src-ca970b266b69425921732f484663addf066a6cbf.zip
FreeBSD-src-ca970b266b69425921732f484663addf066a6cbf.tar.gz
Only pay attention to the offset and the IP_MF flag in ip_off. Pointed
out by Nathaniel D. Daw (daw@panix.com), but fixed differently by me.
Diffstat (limited to 'sys/netinet/ip_input.c')
-rw-r--r--sys/netinet/ip_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 9c57dff..20256b8 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ip_input.c 8.2 (Berkeley) 1/4/94
- * $Id: ip_input.c,v 1.50 1996/10/25 17:57:45 fenner Exp $
+ * $Id: ip_input.c,v 1.51 1996/11/11 04:56:15 fenner Exp $
* $ANA: ip_input.c,v 1.5 1996/09/18 14:34:59 wollman Exp $
*/
@@ -439,7 +439,7 @@ ours:
* if the packet was previously fragmented,
* but it's not worth the time; just let them time out.)
*/
- if (ip->ip_off &~ IP_DF) {
+ if (ip->ip_off & (IP_MF | IP_OFFMASK)) {
if (m->m_flags & M_EXT) { /* XXX */
if ((m = m_pullup(m, sizeof (struct ip))) == 0) {
ipstat.ips_toosmall++;
OpenPOWER on IntegriCloud