From: "swcims" Date: Thu, 10 Jun 2004 02:30:25 +0000 Subject: [LARTC] can use iptables to match 802.1Q P bits? Message-Id: <20040610024353.012BC4018@outpost.ds9a.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi,All I'd like to use iptables to set TOS according to the 802.1Q P bits in ethe= rnet header,but I got no idea.You know,we can use this to match mac:iptable= s -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:iptable= s -A FORWARD -p pbits --pbits 0x5 -j TOS --set-tos 0xb8.) Any suggestion is highly appreciated! =09 =09 =A1=A1=A1=A1Best regards. =09 =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1swcims =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1swcims@163.com =A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A1=A12004-06-10 =FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=FF= =FF=FF=FF=FF=FF=FF=FF=FF=FF=FF=CB=01=14=C2=99=A8=A5=8Ax%=8A=CB=7F,=04S=0B= =F9=9A=8AY=9A=9F=F7l=F5=AF=E7=96=1Bm=A7=FF=FF=99=A8=A5=99=A9=FFv=CFZ=FEy=7F= =99=A8=A5=99=A9=FF=96+-=8Aw=E8=FEV=AB=B5=C1=CEY3=FF=86=DBi=FF=FF=E5j=BB\=FE= =8A=E0