netsniff-ng: Skip duplicated packets on loopback device
commit81f8c546d90b7615e0e6a6777445b10b4263d598
authorPaolo Abeni <pabeni@redhat.com>
Thu, 21 Jul 2016 13:25:27 +0000 (21 15:25 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Thu, 21 Jul 2016 13:39:05 +0000 (21 15:39 +0200)
tree41b697375caac65a0312cb662bc6f147716d46c0
parent20f72d2b68969f75b0a116e49b133363d4b6fb9a
netsniff-ng: Skip duplicated packets on loopback device

When sniffing on the loopback device, each packet will be seen
twice, once per direction. To avoid duplicates, explicitly
skip OUTGOING packets received from loopback, if no packet_type
filter is explicitly set.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.c