Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Jul 2019 09:51:59 +0000 (UTC)
From:      "Andrey V. Elsukov" <ae@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r349648 - stable/11/sys/netpfil/ipfw
Message-ID:  <201907030951.x639pxUu060154@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed Jul  3 09:51:59 2019
New Revision: 349648
URL: https://svnweb.freebsd.org/changeset/base/349648

Log:
  MFC r349366:
    Follow the RFC 3128 and drop short TCP fragments with offset = 1.

Modified:
  stable/11/sys/netpfil/ipfw/ip_fw2.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/netpfil/ipfw/ip_fw2.c
==============================================================================
--- stable/11/sys/netpfil/ipfw/ip_fw2.c	Wed Jul  3 09:49:47 2019	(r349647)
+++ stable/11/sys/netpfil/ipfw/ip_fw2.c	Wed Jul  3 09:51:59 2019	(r349648)
@@ -1686,6 +1686,11 @@ do {								\
 			default:
 				break;
 			}
+		} else {
+			if (offset == 1 && proto == IPPROTO_TCP) {
+				/* RFC 3128 */
+				goto pullup_failed;
+			}
 		}
 
 		ip = mtod(m, struct ip *);



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