I would like to be able to receive all packets (regardless of type) on a
given net_device. It seems the way to do this would be to use ETH_P_ALL
however, ETH_P_ALL has two meanings, 1) receive all packets and 2) behave
as a "NIT" (Network Interface Tap?). The NIT functionality causes packets
transmitted on the net_device in question to be "received" by the ETH_P_ALL
socket, unless the packet was sent by that socket.
I have a need to receive all incoming packets on a net_device however, for
my needs receiving transmitted packets is an undesirable side effect. So,
I'd like to propose a new ethernet type (ETH_P_ALL_NO_NIT perhaps) which
would behave like ETH_P_ALL without NIT.
Comments? Does this sound reasonable? If so I'll submit a patch.
Thanks,
steve atkinson
|