aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2019-06-26 00:53:43 +0000
committerCy Schubert <cy@FreeBSD.org>2019-06-26 00:53:43 +0000
commit7f39a7e4923647e7ef51d89d39a02ca3d7c7ba7b (patch)
treefbb953dd0bdced1dbb0945b7c9b42e60ddff311a /sys
parent519346ce8c66a496d011a680426571e7c5957dc0 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/contrib/ipfilter/netinet/fil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c
index a0d008dbd2d72..bbfb2287337b8 100644
--- a/sys/contrib/ipfilter/netinet/fil.c
+++ b/sys/contrib/ipfilter/netinet/fil.c
@@ -1723,6 +1723,10 @@ ipf_pr_ipv4hdr(fin)
* calculate the byte offset that it represents.
*/
off &= IP_MF|IP_OFFMASK;
+ if (off == 1 && p == IPPROTO_TCP) {
+ fin->fin_flx |= FI_SHORT; /* RFC 3128 */
+ DT1(ipf_fi_tcp_frag_off_1, fr_info_t *, fin);
+ }
if (off != 0) {
int morefrag = off & IP_MF;