proto_80211_mac_hdr: fix sparse warning

This patch fixes the followingf sparse warning:

 proto_80211_mac_hdr.c:3389:24: warning: Using plain integer as NULL pointer

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen: setup_shared_var: fix reamainders

Commit bf9232fb6 ("trafgen: setup_shared_var: fix couple of things")
forgot to amend the remaining changes in 'len' usage. So lets fix
them right now.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
dissector: Mark unused parameters with __maybe_unused

In order to avoid compiler warnings when compiling with
-W/-Wunused-parameter, mark unused function parameters with
__maybe_unused.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
sparse: netsniff-ng, trafgen: fix remaining time(0) warnings

Those are the last occurences of warnings like:

 netsniff-ng.c:697:48: warning: Using plain integer as NULL pointer
 netsniff-ng.c:726:48: warning: Using plain integer as NULL pointer
 ...

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen: switch for skipping cpu time statistics on exit

For systems with >8 CPUs it might be i) annoying or ii) uninteresting
to print CPU time statistics. So introduce a switch that can skip this
at exit.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
oui-update.py: oui: minor config updates

There have been minor updates after letting the script run.
Some are spelling fixes, some modified entries.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
tprintf: Fix compiler warnings

Fix the following warning when compiling with
-W/-Wsign-compare/-Wunused-parameter:

tprintf.c: In function ‘__tprintf_flush_skip’:
tprintf.c:54:65: warning: unused parameter ‘max’ [-Wunused-parameter]
tprintf.c: In function ‘__tprintf_flush’:
tprintf.c:70:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
tprintf.c:76:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
tprintf.c:80:13: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
tprintf.c: In function ‘tprintf’:
tprintf.c:131:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
pcap_mm: Mark unused parameters with __maybe_unused

In order to avoid compiler warnings when compiling with
-W/-Wunused-parameter, mark unused function parameters with
__maybe_unused.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
build: use git describe --always

Use git describe --always in the Makefile instead of git describe
as it can fail otherwise.

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