Right now on every received packet we get the interface name
on which it arrived. This is not needed and is slow.
Make use of ifindex and retrieve interface name only when needed
(when capturing on "All interfaces").
Vitezslav Samel (3):
get the interface name only when needed
remove unused params from getpacket() and processpacket()
ifstats.c: detstats(): warning cleanup
src/hostmon.c | 19 ++++++++++++--
src/ifaces.c | 38 ++++++++++++++++++++++++++++++
src/ifaces.h | 2 +
src/ifstats.c | 70 ++++++++++++++++++++++++++++---------------------------
src/ifstats.h | 1 +
src/itrafmon.c | 19 ++++++++++++--
src/packet.c | 16 +-----------
src/packet.h | 4 +-
src/pktsize.c | 6 +---
src/serv.c | 5 +--
10 files changed, 117 insertions(+), 63 deletions(-)
--
1.7.8.4