Skip to contentSkip to conversation

can use iptables to match 802.1Q P bits?

LARTC swcims 1 participant 1 message Jun 10, 2004

lore
Share & tools
lore

swcims

author
#0 lore raw

Hi,All

	I'd like to use iptables to set TOS according to the 802.1Q P bits in ethernet header,but I got no idea.You know,we can use this to match mac:iptables -A FORWARD -m mac --mac-source 00:e0:4c:3b:b6:d5 -j DROP.So can iptables supply commands to match P bits in ethernet header?(If so,I can set:iptables -A FORWARD -p pbits --pbits 0x5 -j TOS --set-tos 0xb8.)
	Any suggestion is highly appreciated!

¡¡¡¡Best regards.

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡swcims
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡[email protected]
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2004-06-10
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿË™¨¥Šx%ŠË,S ùšŠYšŸ÷lõ¯ç–m§ÿÿ™¨¥™©ÿvÏZþy™¨¥™©ÿ–+-ŠwèþV«µÁÎY3ÿ†Ûiÿÿåj»\þŠà