diff options
author | Gerald Combs <gerald@wireshark.org> | 2011-06-17 17:52:31 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2011-06-17 17:52:31 +0000 |
commit | 8d88f3a7902d1e44d782fdc96157e70884a9ebf2 (patch) | |
tree | 2114755f933eee189d1a4ae481381e945a090800 /capture_opts.c | |
parent | 78f376abc58a5f52f3abe50f4e693bc796e46d03 (diff) |
Make pcap-ng the default. Add a compile-time option to prefer pcap-ng or
pcap. Add a "-P" capture option which tries to use pcap instead of
pcap-ng ("-P" seemed to be the best option but we may want to use a
different letter).
Update the documentation and release notes.
svn path=/trunk/; revision=37696
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/capture_opts.c b/capture_opts.c index 3130027f20..3df0d8cdee 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -112,7 +112,11 @@ capture_opts_init(capture_options *capture_opts, void *cf) capture_opts->saving_to_file = FALSE; capture_opts->save_file = NULL; capture_opts->group_read_access = FALSE; - capture_opts->use_pcapng = FALSE; /* the default is pcap */ +#ifdef PCAP_NG_DEFAULT + capture_opts->use_pcapng = TRUE; /* Save as pcap-ng by default */ +#else + capture_opts->use_pcapng = FALSE; /* Save as pcap by default */ +#endif capture_opts->real_time_mode = TRUE; capture_opts->show_info = TRUE; capture_opts->quit_after_cap = FALSE; @@ -725,6 +729,9 @@ capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg_ capture_opts->default_options.promisc_mode = FALSE; } break; + case 'P': /* Use pcap format */ + capture_opts->use_pcapng = FALSE; + break; case 'Q': /* Quit after capture (just capture to file) */ capture_opts->quit_after_cap = TRUE; *start_capture = TRUE; /*** -Q implies -k !! ***/ |