svn commit: r347330 - stable/12/sys/netpfil/ipfw

Andrey V. Elsukov ae at FreeBSD.org
Wed May 8 15:14:01 UTC 2019


Author: ae
Date: Wed May  8 15:13:59 2019
New Revision: 347330
URL: https://svnweb.freebsd.org/changeset/base/347330

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

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

Modified: stable/12/sys/netpfil/ipfw/ip_fw2.c
==============================================================================
--- stable/12/sys/netpfil/ipfw/ip_fw2.c	Wed May  8 14:54:32 2019	(r347329)
+++ stable/12/sys/netpfil/ipfw/ip_fw2.c	Wed May  8 15:13:59 2019	(r347330)
@@ -2150,9 +2150,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;


More information about the svn-src-all mailing list