Need a way to match vlan / pcp fields in 802.1Q header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello, I need to match the cos field in the vlan tag on a linux box, and
can not find a way to match that tag via ebtables or iptables. I need an
iptables rule based on vlan cos tag. My fist idea was to mark the packet
via ebtables and catch it in iptables after, but ebtables will not work
on eth0, even if I see well the vlan tag there via tcpdump.

Example: 
tcpdump -i eth0 -xx -s 32
23:26:43.179854 IP [|ip]
        0x0000:  001a 801d b658 0002 e338 734f 8100 0016
        0x0010:  0800 4510 00e4 ea40 4000 4006 c11a 43d4

The '0016' shows a packet with cos 0 for vlan 0x16, and this is what I
need to match. Some ideas of how this can be done?

Thanks, George.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux