The first three patches clean up ifstats.h file: move structs
to appropriate files and the rest makes the new counters.[ch].
This cleanup allows to use structs now defined in counters.h in other
files/modules (e.g. in coming up RATE patches).
The last patch removes two unused functions from serv.c (this also
kills one warning).
Vitezslav Samel (4):
move struct ifcounts
move struct iflist and iftab
create counters.c
serv.c: remove unused functions
src/Makefile.am | 3 +-
src/counters.c | 23 +++++++++++++++++++
src/counters.h | 19 ++++++++++++++++
src/detstats.c | 40 ++++++++++++++-------------------
src/ifstats.c | 30 +++++++++++++++++++++++++-
src/ifstats.h | 64 -------------------------------------------------------
src/promisc.c | 1 -
src/serv.c | 24 --------------------
8 files changed, 90 insertions(+), 114 deletions(-)
create mode 100644 src/counters.c
create mode 100644 src/counters.h
delete mode 100644 src/ifstats.h
--
1.7.8.4