aboutsummaryrefslogtreecommitdiffstats
path: root/optimize.c
diff options
context:
space:
mode:
authorguy <guy>2000-10-25 07:46:49 +0000
committerguy <guy>2000-10-25 07:46:49 +0000
commit188fee53ccbbe6b11e84ae01b10955205be5ac62 (patch)
tree14a2efbcdd623ef403f55637ec99daf12b9bd220 /optimize.c
parent5c4a9505073aa4221706ef489a7efdb68521edfd (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 'optimize.c')
0 files changed, 0 insertions, 0 deletions