Perhaps you should look at ebtables. This can filter by Ethernet frame
type or layer 3 protocol.
dileep reddy wrote:
hi,
I want to know the method to catch packets at the device.
Essentially, I want to filter packets based on the types(I have a
custom header with type in that) at the interface rather than doing
the same at the network layer. One can use netfilter hooks to capture
packets at network layer; is there any way to mangle them at the
interface itself?
Thank you
-
: 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