netsniff-ng: Display pcap I/O method in verbose mode
commitbd83dd9c975aeb9fc09c09ef4dd408e6b618c4af
authorTobias Klauser <tklauser@distanz.ch>
Mon, 30 Sep 2013 15:44:19 +0000 (30 17:44 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 30 Sep 2013 18:42:28 +0000 (30 20:42 +0200)
tree9619e96a2c22f3e6fdcb6b16ba64f326146d7a6b
parent408e36cf6e12d34d67bf2c1694428533060f9b14
netsniff-ng: Display pcap I/O method in verbose mode

If a user accidentially specifies more than one of --mm/--sg/--clrw, the
option specified last will be used - as expected from standard command
line tools. In order to still prevent users from being confused by this,
explicitely display the pcap I/O method used in verbose mode.

In order for the output to be more user-friendly, actually write out the
method names in const char *pcap_ops_group_to_str, which isn't used
anywhere else anyway.

Suggested-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.c
pcap_io.h