summaryrefslogtreecommitdiff
path: root/netsniff-ng.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-04-30 14:30:39 +0200
committerTobias Klauser <tklauser@distanz.ch>2014-04-30 14:30:39 +0200
commit1b5611fafbed8d0e04a17b2a53ff78b003165598 (patch)
tree6050444fa685ef852a9b77fa776dd3f6e5dd7588 /netsniff-ng.c
parent47bdd9425177dd5f80b43ba10372ca1750df4ac2 (diff)
netsniff-ng/ring: Make verbose flag bool
Change type of verbose flag from int to bool. Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'netsniff-ng.c')
-rw-r--r--netsniff-ng.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netsniff-ng.c b/netsniff-ng.c
index b345b22..52ec00f 100644
--- a/netsniff-ng.c
+++ b/netsniff-ng.c
@@ -54,10 +54,10 @@ enum dump_mode {
struct ctx {
char *device_in, *device_out, *device_trans, *filter, *prefix;
- int cpu, rfraw, dump, print_mode, dump_dir, packet_type, verbose;
+ int cpu, rfraw, dump, print_mode, dump_dir, packet_type;
unsigned long kpull, dump_interval, tx_bytes, tx_packets;
size_t reserve_size;
- bool randomize, promiscuous, enforce, jumbo, dump_bpf;
+ bool randomize, promiscuous, enforce, jumbo, dump_bpf, verbose;
enum pcap_ops_groups pcap; enum dump_mode dump_mode;
uid_t uid; gid_t gid; uint32_t link_type, magic;
};
@@ -1300,7 +1300,7 @@ int main(int argc, char **argv)
ctx.dump_interval *= strtoul(optarg, NULL, 0);
break;
case 'V':
- ctx.verbose = 1;
+ ctx.verbose = true;
break;
case 'B':
ctx.dump_bpf = true;