Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement 'vlanid' operator #246

Open
dpino opened this issue Dec 14, 2015 · 0 comments
Open

Implement 'vlanid' operator #246

dpino opened this issue Dec 14, 2015 · 0 comments

Comments

@dpino
Copy link
Member

dpino commented Dec 14, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant