Date: Fri, 26 Feb 2021 15:07:02 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 253872] pf set-tos doesn't work for ipv6 Message-ID: <bug-253872-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D253872 Bug ID: 253872 Summary: pf set-tos doesn't work for ipv6 Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: jcaplan@blackberry.com Overview ------- While pfctl lets you set-tos for ipv6, it doesn't appear to be implemented = on kernel side. Steps to Reproduce ----------- 1. pf.conf: scrub in on em0 inet6 proto {tcp, udp, 58} all set-tos lowdelay fragment reassemble pass log (all) all 2. ping6 the target with traffic class specified: ping6 -n -Q 0x20 -c2 fe80::a00:27ff:feb8:57c0%wlp2s0 Expected result --------------- tcpdump: listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 262144 bytes 09:14:53.083938 rule 0/0(match): pass in on em0: (class 0x10... Actual Result ------------- # tcpdump -vvv -ee -i pflog0 -l -n tcpdump: listening on pflog0, link-type PFLOG (OpenBSD pflog file), capture size 262144 bytes 09:14:53.083938 rule 0/0(match): pass in on em0: (class 0x20... Build Date & Hardware --------------------- FreeBSD bsd-vbox 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r368820: Tue Jan 5 17:30:19 EST 2021=20=20=20=20 jcaplan@bsd-vbox:/usr/obj/usr/src-head/amd64.amd64/sys/GENERIC amd64 Additional Information ---------------------- pf_scrub_ip6, unlike pf_scrub_ip doesn't check the PFRULE_SET_TOS flag and doesn't update the traffic class in the ip6_hdr. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-253872-227>