netsniff-ng: refactor the code a bit

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