]> The Tcpdump Group git mirrors - libpcap/commit
Add support for setting the snapshot length and not setting the filter.
authorGuy Harris <[email protected]>
Fri, 3 Jul 2020 10:02:05 +0000 (03:02 -0700)
committerGuy Harris <[email protected]>
Fri, 3 Jul 2020 10:02:05 +0000 (03:02 -0700)
commit141253c471119db0761d73c2fc095b82a2017eb3
treebf584b4d217b6fc43287b4d4c5a9e65a76fc67ad
parent648dfd0b91307d3bd05b92a8b379103f07bc5176
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.
testprogs/writecaptest.c