Linux Netfilter discussions
 help / color / mirror / Atom feed
* How to set packet priority in the netdev table?
@ 2024-07-28 18:59 Kevin Vigouroux
  0 siblings, 0 replies; only message in thread
From: Kevin Vigouroux @ 2024-07-28 18:59 UTC (permalink / raw)
  To: netfilter

Hi!

I don't understand how to set the internal priority of packets encapsulated in
802.1Q frames.

#+BEGIN_SRC
table netdev filter {
    chain egress {
         type filter hook egress device eth1 priority filter; policy accept;
         udp dport 547 meta priority set 0:6 ip6 dscp set cs6
    }
}
#+END_SRC

tcpdump shows me that the DSCP in the DHCPv6 packets is modified but not the
PCP (priority code point).

#+BEGIN_QUOTE
    NETDEV ADDRESS FAMILY

    The Netdev address family handles packets from the device ingress and egress
    path. This family allows you to filter packets of any ethertype such as ARP,
    VLAN 802.1q, VLAN 802.1ad (Q-in-Q) as well as IPv4 and IPv6 packets.
#+END_QUOTE

Source: man 8 nft

It is unclear which interface I should use?

eth1 or eth1.832 (VLAN 832)?

I've asked for help on the OpenWrt forum but they haven't been able to answer
me.

Source: https://forum.openwrt.org/t/how-do-you-set-packet-priority-in-the-netdev-table/205371/4

---
Best regards
Kevin Vigouroux

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-29  6:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-28 18:59 How to set packet priority in the netdev table? Kevin Vigouroux

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox