lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 4 Jun 2007 14:54:53 -0700
From:	"Waskiewicz Jr, Peter P" <>
To:	"Marc Donner" <>, <>
Subject: RE: skb->priority on arp packets

> is it possible to set the skb->priority on arp packets 
> generated by the kernel?
> I want to to set the 802.1p priority on arp and ip packets on 
> an interface. On ip packets, this can be done by the iptables 
> CLASSIFY target and the 
> skb->priority mapping from the vlan implementation.
> any ideas?

Currently unclassified ip packets have skb->priority set in ipsockglue,
by translating the IP TOS field into a Linux priority.  This is not the
same priority as 802.1p, rather, it's a Linux-based OS priority
classification for dequeuing priority in schedulers such as sch_prio.
802.1p lives in the VLAN tag, which is separate from skb->priority.  I'd
suggest reading to see
what exactly skb->priority is used for in sch_prio and pfifo_fast, and
how the ip layer determines a packet's priority.  The skb->priority
field is also used in other ways in other qdiscs I'm not completely
familiar with, but it's not directly related to priority of the packet.
I'd need to look closer at those qdiscs to be specific.

That being said, the only way I can think of manipulating skb->priority
on arp packets (and actually setting it) is modifying a qdisc to set
skb->priority if it matches a filter created using the tc command.

-PJ Waskiewicz
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to
More majordomo info at

Powered by blists - more mailing lists