Ok, another rc version of iptraf-ng is ready. Overall we have made +122
changes. Some of them simplify code, some of them fixes some bug and
some of them adds new devices.
Pick it, build it, run it, test it and report bugs
--
Nikola
---
Nikola Pajkovsky (15):
ifstat: better linearization of code
get rid of the net/if* headers and use linux/if* instead
linktype: get rid of linktype variable and get this info from struct sockaddr_ll
fromaddr
ifstat: fix indentation
remove pointless code
Makefile: add support for sparse source code checking
packet.c: reenable ARPHRD_PPP
itrafmon: simplify if()'s
itrafmon: simplify if()'s
get rid of 'nomem' variable/func argument
serv: simplify if()'s
hostmon: remove casting from unsigned int to int
ipcsum: move in_cksum() into packet.c
configure.ac: add -W option to gcc as default
strbuf.c: introduce ALLOC_GROW growing macro
Vitezslav Samel (107):
Delete never used graphing code.
Move about() dialog into the main menu.
Kill active_facility_* variables.
Kill unneeded check for empty iflist.
Guard every header against multiple inclusion.
Kill unused header file.
Kill unused file.
packet.c: processpacket(): simplify ipv4 filtering
packet.c: processpacket(): indentation cleanup.
packet.c: kill micro-optimization
packet.c: adjustpacket(): bugfix: decrement packet size not the pointer to it
packet.c: adjustpacket(): fix VLAN header handling
packet.c: getpacket(): remove unnecessary assignment
packet.c: adjustpacket(): allow capturing on tun like interface
get_next_iface(): fix string overflow check
ipfilter.c: gethostparams(): simplify menu initializers
remove daemonized param from write_error()
ifstats.c: detstats(): keyboard event handling cleanup
move v6inv4asv6 check into the processpacket()
landesc.c: check_mac_addr(): make room for trailing '\0'
hostmon.c: convmacaddr(): fix MAC addr to ASCII conversion
hostmon.c: addethentry(): make the MAC addr description searching case insensitive
Change bits/sec (bytes/sec) to kbps (kBps)
packet.c: adjustpacket(): support GRE-over-IP tunnels
use bind() to lock the socket on given interface
remove ifptr parameter from processpacket()
ifstats.c: refactor detstat()
itrafmon.c: ipmon(): invert one condition to make the source more readable
itrafmon.c: ipmon(): change sequence of if()s into switch()
use integer constant when dealing with integer variables
ifstats.c: detstats(): warning cleanup
get the interface name only when needed
remove unused params from getpacket() and processpacket()
serv.c: fix the type of idx variable
autogen.sh: remove autom4te cache after autoreconf run
kill "set-but-not-used" warnings spilled out by gcc-4.6.x
kill "unused-parameter" warnings spilled out by gcc-4.6.x
change NORETURN attribute to __noreturn
change UNUSED attribute to __unused
write_error(): make it work with variable argument list
tr.c: move get_tr_ip_offset() into packet.c
kill "comparison between signed and unsigned integer expressions" warnings
spilled out by gcc-4.6.x
kill "missing initializer" warning spilled out by gcc-4.6.x
fix interrupted select()
detstats.c: move detstats() and its helper functions into separate file
detstats.c: make some functions static
ifstats.c: make some functions static
move writedstatlog() from log.c to detstats.c
move writegstatlog() from log.c to ifstats.c
move writeutslog() from log.c to serv.c
move writeethlog() from log.c to hostmon.c
move write_size_log() from log.c to pktsize.c
move writeothplog() from log.c to othptab.c
move writetcplog() and write_tcp_unclosed() from log.c to tcptable.c
remove unused includes and defines
packet.c: getpacket(): get total on-wire length of packet
packet.c: getpacket(): capture first 256B of the packet only
hostmon.c: hostmon(): sll_protocol is already in host byte order
hostmon.c: hostmon(): count IPv6 as IP protocol too
hostmon.c: make some functions static
instances.c: make some functions static
ipfrag.c: make some functions static
iptraf.c: make some functions static
itrafmon.c: make some functions static
options.c: make some functions static
othptab.c: make some functions static
parseproto.c: make some functions static
pktsize.c: make some functions static
revname.c: make some functions static
rvnamed.c: make some functions static
serv.c: make some functions static
tcptable.c: make some functions static
remove unneeded extern definitions
remove unused tcptimeout.h include file
hostmon(): fix: remove TokenRing check
remove LINK_PLIP
hostmon(): change series of if() into switch()
ifaces.c: create iface_get_mtu()
iface_[gs]et_flags(): cleanup network interface handling
packet.c: define struct pkt_hdr and functions on it
detstats(): use new struct pkt_hdr
hostmon(): use new struct pkt_hdr
ifstats(): use new struct pkt_hdr
fix include dependency hell
ipmon(): use new struct pkt_hdr
packet_size_breakdown(): use new struct pkt_hdr
servmon(): use new struct pkt_hdr
packet.c: remove unused *packet()
change HOSTMON_UPDATE_DELAY to DEFAULT_UPDATE_DELAY
remove xsocket*() wrappers
packet_get(): workaround select() bug
delete unused/unneeded file fltlist.c
delete unneeded system includes from fltselect.h
wrapper.c: socket_bind_to_iface*(): rename and move to iface.c
ifaces.c: rename iface_up() to dev_up()
ifaces.c: rename iface_get_ifindex() to dev_get_ifindex()
ifaces.c: rename iface_get_mtu() to dev_get_mtu()
ifaces.c: rename iface_get_flags() to dev_get_flags()
ifaces.c: rename iface_set_flags() to dev_set_flags()
ifaces.c: rename iface_clear_flags() to dev_clear_flags()
ifaces.c: rename iface_set_promisc() to dev_set_promisc()
ifaces.c: rename iface_clear_promisc() to dev_clear_promisc()
ifaces.c: rename iface_get_ifname() to dev_get_ifname()
uncomment and move strtoul_ui() and strtol_i() to wrapper.c
replace atoi() with strtoul_ui()
kill licensing blobs
unify ltrim(), tx_ltrim() and skip_whitespace()