ifpps: fix segfault in terminal mode

Introduced by commit 0e47d1d5011f ("ifpps: Don't assume a maximum of
32 CPUs"). Also update term_main with initial allocation of CPU data.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
make: allow to append CFLAGS in addition to overwrite

This is needed for distribution packaging purposes. Also remove the
warning, because -I/-L paths for nacl could be defined via cmdline
as well.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
make: add DISTRO=1 for compilation on distributions

For packaging, we cannot use -O3, -march etc, so have an option that
allows for distribution build and does less tuning.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
docs: move sponsor names into authors

We don't need to keep an extra file around, put this into the
AUTHORS file under sponsor section. Also credit Team Cymru for
providing an extra machine for us for ASN mappings.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
docs: minor: fix whitespacing in copying file

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
conf: oui: run oui-update.py script over config file

Update oui entries.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
misc: Fixed spelling mistakes

Fix for spelling mistakes detected by Lintian.

Signed-off-by: Kartik Mistry <kartik@debian.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
man: manpages hyphen and spelling mistakes

Some fixes all over, part 1.

Signed-off-by: Kartik Mistry <kartik@debian.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
ring: remove fanout related bits

We currently do not support it, so do not keep it here.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
ifpps: Allocate cpu dependent stats in one place

Avoid code duplication by allocating the stats arrays dependent on the
number of CPUs in main() rather than screen_main() and term_main().

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
ring: set_sockopt_tpacket: rename to set_sockopt_tpacket_v2

Rename it to set_sockopt_tpacket_v2 so that we later on can also
add other versions and have it clearly stated which one we use.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
netsniff-ng: Add __maybe_unused attribute to timer functions

The two functions timer_elapsed() and timer_next_dump() both take an
argument which they don't use. Annotate them appropriately using the
__maybe_unused attribute.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
ifpps: Allow to select number of top hitter CPUs by command line option

Instead of hard-coding the maximum number of top hitter CPUs, allow the
user to set it manually using a command line option. The default value
(if no command line parameter is specified) remains at 10.

Also update the manpage accordingly.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
man: manpage hyphen fixes, take two

Fix hyphens all over.

Signed-off-by: Kartik Mistry <kartik@debian.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
man: manpage hyphen fixes, take three

More hyphen fixes all over.

Signed-off-by: Kartik Mistry <kartik@debian.org>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Merge branch 'master' of github.com:borkmann/netsniff-ng

Needed to let Git merge to not run into conflicts with Tobias' set
of changes on ifpps resp. ifpps manpage.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Merge remote-tracking branch 'upstream/master'