Linux – how to set skb->priority of ARP packets

arplinuxnetworkingroutingvlan

As the title already specifies, I'm looking for a way to set the linux skb->priority of outgoing ARP packets of a given interface on my linux machine that is used as a router.

The skb priority is ultimately used to set the IEEE 802.1Q priority through the egress priority map.

For regular IP/TCP/UDP traffic setting the priority is normally easy enough as it can be set through iptables (-j CLASSIFY --set-class), cgroups (net_prio), or others, but for the ARP traffic I'm a bit lost.

Best Answer

I think etables with vlan module could be used to specify 802.1Q Tag Control Information fields

Update

vlan module is for matching packets not for setting priority

This article explains how to set 802.1Q Tag Control Information fields