netsniff-ng: dissector: Remove unused parameter to show_frame_hdr()

The rmode parameter is no longer used since commit 58f49a6a ("dissector:
remove redundant code, clean up a bit"), so purge it.

Also remove the thus now unused enum ring_mode.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
xutils: put commonly used code into xutils, remove deprecated one

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
docs: mention txhashes in trafgen

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen: use urandom for seed

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
pcap_rw: simplify code by using raw

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
pcap_sg: simplify code by using raw

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
pcap_mm: simplify code by using raw

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
curve: use sizeof instead of hard coded value

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
pcap: also support byte swapped pcap types

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
dissector: Remove unnecessary void * cast

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
dissector: remove cases that go into default

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
dissector: no need to init proto_start, proto_end here

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
dissector: arp: Don't convert single byte header fields

There is no need to convert single byte header fields from network to
host order. This even leads to these fields being displayed in a wrong
way.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
dissectors: arp: Display descriptive string for address type fields

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
die: remove whine from code

No need to keep that since we have printf.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Merge branch 'master' of github.com:borkmann/netsniff-ng
netsniff-ng: improve help a bit

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
trafgen: show actual calculation in help

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
netsniff-ng: rearrange some options

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
dissector: icmpv4: Verify checksum as in IPv4 dissector

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>