summaryrefslogtreecommitdiff
path: root/pcap-npf.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2020-07-03 03:02:05 -0700
committerGuy Harris <gharris@sonic.net>2020-07-03 03:02:05 -0700
commit141253c471119db0761d73c2fc095b82a2017eb3 (patch)
treebf584b4d217b6fc43287b4d4c5a9e65a76fc67ad /pcap-npf.c
parent648dfd0b91307d3bd05b92a8b379103f07bc5176 (diff)
downloadlibpcap-141253c471119db0761d73c2fc095b82a2017eb3.tar.gz
Add support for setting the snapshot length and not setting the filter.
Add a -s option to set the snapshot length; don't set it, even to a default value, if -s isn't specified. If there are no arguments specifying a filter, don't compile or install a filter. This allows us to test 1) whether the snapshot length works even if no filter is set and 2) what happens if the snapshot length isn't set.
Diffstat (limited to 'pcap-npf.c')
0 files changed, 0 insertions, 0 deletions