Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 May 2019 15:17:17 +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: r347333 - stable/11/sys/netpfil/ipfw
Message-ID:  <201905081517.x48FHHqT096857@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ae
Date: Wed May  8 15:17:16 2019
New Revision: 347333
URL: https://svnweb.freebsd.org/changeset/base/347333

Log:
  MFC r346884:
    Add IPv6 support for O_IPLEN opcode.
  
    Obtained from:	Yandex LLC

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 May  8 15:17:04 2019	(r347332)
+++ stable/11/sys/netpfil/ipfw/ip_fw2.c	Wed May  8 15:17:16 2019	(r347333)
@@ -2148,9 +2148,11 @@ do {								\
 				break;
 
 			case O_IPID:
-			case O_IPLEN:
 			case O_IPTTL:
-				if (is_ipv4) {	/* only for IP packets */
+				if (!is_ipv4)
+					break;
+			case O_IPLEN:
+				{	/* only for IP packets */
 				    uint16_t x;
 				    uint16_t *p;
 				    int i;



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