diff options
| author | Boris Lytochkin <lytboris@gmail.com> | 2025-11-18 10:31:56 +0000 |
|---|---|---|
| committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2025-11-18 10:31:56 +0000 |
| commit | 8012c61bef3bb19a48d8459b38b65e27d46c186c (patch) | |
| tree | aa2f405c2e5a8704297070c055d151c4af32d48d | |
| parent | c0a38339fec37a5b6367f138f059a12d6d716fd4 (diff) | |
ipfw: fix lookup dst-ip opcode
Opcode handling should not fall through to the LOOKUP_DSCP type.
Reviewed by: melifaro
Obtained from: Yandex LLC
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D53775
| -rw-r--r-- | sys/netpfil/ipfw/ip_fw2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netpfil/ipfw/ip_fw2.c b/sys/netpfil/ipfw/ip_fw2.c index d15d7760d7f1..c27b6bc274fb 100644 --- a/sys/netpfil/ipfw/ip_fw2.c +++ b/sys/netpfil/ipfw/ip_fw2.c @@ -2120,8 +2120,8 @@ do { \ pkey = &args->f_id.dst_ip6; else pkey = &args->f_id.src_ip6; - } else /* only for L3 */ - break; + } + break; case LOOKUP_DSCP: if (is_ipv4) key = ip->ip_tos >> 2; |
