802.3

Chris Vitale <csv-GeuMkHXKC5pWk0Htik3J/[email protected]>
Newsgroups gmane.linux.network.bridge.ebtables.devel
Message-ID <[email protected]>
Hey,

I needed to filter 802.3 packets based on the their SSAP/DSAP values and SNAP type.

Wrote an extension I'd like to share.  Basically I just ripped off the ARP kernel/userspace stuff.

Adds:  

--802.3-sap 
--802.3-type

sap's argument is a one byte hex value.  type takes a two byte hex value.  -p must be LENGTH.  The
file _ebt_802.c is the userspace file.

--802.3-type will only check 802.3 packets with sap value 0xaa (which is the correct behavior).  

Comments are welcome.  If you guys think it looks alright I'll add 802.3 control matching later this week.

Enjoy!

vitale
ebt.tar.gz (application/x-gzip, 2.1 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.