Hello,
I am working on an embedded system and would like to implement a
PF_PACKET/SOCK_RAW with packet filtering. The objective is to create a
filter based on a family of destination MAC addresses. Can anyone
provide sample code which does this without the aid of the PCAP
library? A previous posting suggested looking at tcpdump for an
example of BPF but the current version seems to be PCAP based.
Documentation or a pointer to source code to explain linux/filters.h
filter operations may be enough to get me over the hump.
TIA
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html