svn commit: r346884 - head/sys/netpfil/ipfw
Andrey V. Elsukov
ae at FreeBSD.org
Mon Apr 29 09:33:17 UTC 2019
Author: ae
Date: Mon Apr 29 09:33:16 2019
New Revision: 346884
URL: https://svnweb.freebsd.org/changeset/base/346884
Log:
Add IPv6 support for O_IPLEN opcode.
Obtained from: Yandex LLC
MFC after: 1 week
Sponsored by: Yandex LLC
Modified:
head/sys/netpfil/ipfw/ip_fw2.c
Modified: head/sys/netpfil/ipfw/ip_fw2.c
==============================================================================
--- head/sys/netpfil/ipfw/ip_fw2.c Mon Apr 29 05:35:52 2019 (r346883)
+++ head/sys/netpfil/ipfw/ip_fw2.c Mon Apr 29 09:33:16 2019 (r346884)
@@ -2191,9 +2191,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