Vitezslav Samel (3):
introduce packet capturing abstraction
capt.c: add capturing using recvmmsg()
capt.c: add capturing using mmap()ed PACKET_RX_RING memory
Makefile | 15 +++++
src/capt-mmap-v2.c | 147 +++++++++++++++++++++++++++++++++++++++++++++++
src/capt-mmap-v2.h | 6 ++
src/capt-recvmmsg.c | 138 ++++++++++++++++++++++++++++++++++++++++++++
src/capt-recvmmsg.h | 6 ++
src/capt-recvmsg.c | 89 ++++++++++++++++++++++++++++
src/capt-recvmsg.h | 6 ++
src/capt.c | 153 +++++++++++++++++++++++++++++++++++++++++++++++++
src/capt.h | 31 ++++++++++
src/capture-pkt.c | 18 +++---
src/detstats.c | 27 ++++-----
src/hostmon.c | 26 ++++-----
src/ifstats.c | 21 ++++---
src/iptraf-ng-compat.h | 1 +
src/itrafmon.c | 23 +++-----
src/packet.c | 92 +----------------------------
src/packet.h | 13 +----
src/pktsize.c | 25 ++++----
src/serv.c | 26 ++++-----
19 files changed, 663 insertions(+), 200 deletions(-)
create mode 100644 src/capt-mmap-v2.c
create mode 100644 src/capt-mmap-v2.h
create mode 100644 src/capt-recvmmsg.c
create mode 100644 src/capt-recvmmsg.h
create mode 100644 src/capt-recvmsg.c
create mode 100644 src/capt-recvmsg.h
create mode 100644 src/capt.c
create mode 100644 src/capt.h
--
1.9.1