pflua
pflua copied to clipboard
Implement 'vlanid' operator
This PR implements a simple operator which can match a VLAN tag. Pflan 'vlan' handles VLAN hierarchies incrementing filter offsets by 4 on each use [1]
The proposed 'vlanid' operator does a simple matching of a 802.1q packet by VLAN_ID.
| dst.mac | src.mac | 0x8100 | PCP/DEI/VLAN_ID |
Where VLAN_ID = 12-bit number [0-4095].
[1] http://biot.com/capstats/bpf.html