astraceroute: Use IPPROTO_* enum values to set IP header protocol field

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
astraceroute: Use IPPROTO_ICMP in one more place

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
xutils: Remove unused functions device_up() and device_running()

Only device_up_and_running() is used across the tools.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
xutils: ifpps: Move adjust_dbm_level() to only user

The function is used only in ifpps, so move it there.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
xutils: Remove prototypes for inexistent functions from header

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
xutils: tprintf: Move get_tty_size() to only user

get_tty_size() is only used inside tprintf.c, so move it there.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
xutils: stun: Replace set_timeout() by simpler inline implementation

There's only one user for set_timeout(), so inline it there and simplify
accordingly.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
docs: add Tobias' work into dissector section

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
stun: Use set_reuseaddr() instead of open-coding it

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
xutils: Fix coding style issue in set_reuseaddr()

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
xutils: Fix incorrect message in af_socket()

We're panic()ing now, so there is nothing to fall back to.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
proto: udp,tcp: Use __packed instead of __attribute__((packed))

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
geoip: Add geoip v4/v6 API abstraction layer

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
netsniff-ng: add geoip support for IPv4

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
tprintf: fix missing header for getting terminal width

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
netsniff-ng: add geoip v6 support

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
update-geoip: add symlinks to /etc/netsniff-ng

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
docs: add netsniff-ng geoip bullet

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
docs: remove todo bullet

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
geoip: fix header inclusion

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>