opnsense-src/sys/netpfil/ipfw
Andrey V. Elsukov 836f54302e ipfw: fix matching and setting DSCP value for IPv6
Matching for DSCP codes has used incorrect bits. Use IPV6_DSCP()
macro for matching opcodes to fix this. Also this leads to always
use value from a mbuf instead of cached value.

Previously different opcodes have used both cached in f_id value
and stored in the mbuf, and it did not always work after setdscp
action, since cached value was not updated.

Update IPv6 flowid value cached in the f_id.flow_id6 when we do
modification of DSCP value in O_SETDSCP opcode, it may be used by
external modules.

Also added logging support for O_SETDSCP opcode.

Reviewed by:	kp
Differential Revision: https://reviews.freebsd.org/D34807

(cherry picked from commit 4763c0aa68)
2022-04-18 12:15:46 +03:00
..
nat64 netpfil: Fix a typo in a source code comment 2022-04-14 08:14:09 +02:00
nptv6 net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
pmod net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
test net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_aqm.h dummynet: Fix schedlist and aqmlist locking 2021-06-17 14:38:07 +02:00
dn_aqm_codel.c VNETify dummynet 2021-06-17 14:38:07 +02:00
dn_aqm_codel.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_aqm_pie.c netpfil: Fix two typo in source code comments 2022-04-09 08:08:34 +02:00
dn_aqm_pie.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_heap.c
dn_heap.h
dn_sched.h dummynet: Fix schedlist and aqmlist locking 2021-06-17 14:38:07 +02:00
dn_sched_fifo.c
dn_sched_fq_codel.c VNETify dummynet 2021-06-17 14:38:07 +02:00
dn_sched_fq_codel.h VNETify dummynet 2021-06-17 14:38:07 +02:00
dn_sched_fq_codel_helper.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_sched_fq_pie.c netpfil: Fix two typo in source code comments 2022-04-09 08:08:34 +02:00
dn_sched_prio.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_sched_qfq.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_sched_rr.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dn_sched_wf2q.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
dummynet.txt
ip_dn_glue.c ipfw: use unsigned int for dummynet bandwidth 2021-08-26 14:05:26 +02:00
ip_dn_io.c ipfw: use unsigned int for dummynet bandwidth 2021-08-26 14:05:26 +02:00
ip_dn_private.h dummynet: Fix socket option length validation for IP_DUMMYNET3 2021-12-06 09:04:33 -05:00
ip_dummynet.c dummynet: Fix socket option length validation for IP_DUMMYNET3 2021-12-06 09:04:33 -05:00
ip_fw2.c ipfw: fix matching and setting DSCP value for IPv6 2022-04-18 12:15:46 +03:00
ip_fw_bpf.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip_fw_dynamic.c ipfw: do not use sleepable malloc in callout context. 2021-04-28 13:05:03 +03:00
ip_fw_eaction.c
ip_fw_iface.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip_fw_log.c ipfw: fix matching and setting DSCP value for IPv6 2022-04-18 12:15:46 +03:00
ip_fw_nat.c Add required checks for unmapped mbufs in ipdivert and ipfw 2021-04-28 10:00:13 -04:00
ip_fw_pfil.c ipfw: Update the pfil mbuf pointer in ipfw_check_frame() 2021-06-19 10:08:49 -04:00
ip_fw_private.h ipfw: fix possible data race between jump cache reading and updating. 2021-08-24 17:56:56 +03:00
ip_fw_sockopt.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip_fw_table.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip_fw_table.h net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00
ip_fw_table_algo.c Fix LINT-NOINET6 build after r368571. 2020-12-14 22:54:32 +00:00
ip_fw_table_value.c net: clean up empty lines in .c and .h files 2020-09-01 21:19:14 +00:00