All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Vigouroux <ke.vigouroux@laposte.net>
To: netfilter@vger.kernel.org
Subject: How do you set packet priority in the netdev table?
Date: Mon, 29 Jul 2024 07:26:43 +0200	[thread overview]
Message-ID: <87msm0wyy4.fsf@laposte.net> (raw)

Hi!

I don't understand how to change the internal priority of packets in a netdev
family table in order to change the PCP.

My DHCPv6 client sends Solicit packets on VLAN 832. The PCP of these packets
must be equal to 6.

#+begin_src
table netdev filter
flush table netdev filter

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 comment "Set CoS value to 6 for DHCPv6 packets"
        }
}
#+end_src

In my tcpdump capture, I can see that my rule modifies the DSCP of DHCPv6
packets but not the internal priority, as the PCP remains unchanged.

Should my egress chain specify the eth1 interface or the eth1.832 interface?
Knowing that I can modify the DSCP of packets encapsulated in 802.1Q frames by
specifying the eth1 interface.

"type filter hook egress device eth1" or "type filter hook egress device eth1.832"?

Note: I don't think you received my previous mail. I'm sorry if this is a copy
of a previous mail.

Note: You can see my original post on the OpenWrt forum: 

https://forum.openwrt.org/t/how-do-you-set-packet-priority-in-the-netdev-table
---
Best regards,
Kevin Vigouroux

                 reply	other threads:[~2024-07-29  5:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87msm0wyy4.fsf@laposte.net \
    --to=ke.vigouroux@laposte.net \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.