diff options
author | guy <guy> | 2000-10-25 07:46:49 +0000 |
---|---|---|
committer | guy <guy> | 2000-10-25 07:46:49 +0000 |
commit | 188fee53ccbbe6b11e84ae01b10955205be5ac62 (patch) | |
tree | 14a2efbcdd623ef403f55637ec99daf12b9bd220 /pcap.c | |
parent | 5c4a9505073aa4221706ef489a7efdb68521edfd (diff) |
If we're receiving packets from a PF_PACKET socket, check whether the
interface index of the interface for the packet is the interface index
of the loopback interface and, if it is, check if the packet is an
outgoing packet; if so, ignore it, as we'll also be seeing that packet
as a received packet.
If we don't handle the arphrd type of an interface, and fall back on
cooked mode, report the arphrd type, so we know what type we should
consider supporting (if that type can't be supported well, e.g. if you
don't get any link-layer header, as happens with PPP, we'd be silent).
Diffstat (limited to 'pcap.c')
0 files changed, 0 insertions, 0 deletions