Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Aug 1996 16:48:37 -0600
From:      Warner Losh <imp@village.org>
To:        Poul-Henning Kamp <phk@critter.tfs.com>
Cc:        hackers@freebsd.org
Subject:   Which fragments to discard (was Re: ipfw vs ipfilter)
Message-ID:  <199608182248.QAA01272@rover.village.org>
In-Reply-To: Your message of Sun, 18 Aug 1996 16:42:33 %2B0200

next in thread | raw e-mail | index | archive | help
Poul-Henning Kamp writes:
: This is a common mistake, only offset==1 needs to be discarded.

Hmmm, since there are no comments in ip_fw.c as to why only offset 1
is a problem, I'll have to ask here.  Why is that?

A quick look at Stephens[*] shows that offset 2 could be used to rewrite
the TCP flags, or if you have IP options that you can pad things such
that even the TCP ports get overwritten.  What have I missed?

Warner

[*] Stephens isn't good at explaining exactly what the ip_off is, but
glosses over this detail, so maybe some of my thick-headedness on this
comes from that gloss.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199608182248.QAA01272>