netsniff: Allow filter input pcap file to output pcap
commite6890cb3e59ec4bdbe57e999592b9488fcfa1f80
authorVadim Kochan <vadim4j@gmail.com>
Sat, 24 Jan 2015 13:37:09 +0000 (24 15:37 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 26 Jan 2015 10:54:03 +0000 (26 11:54 +0100)
treed3428600208d3c0dbe4a1a796bb757e6d70a2bd0
parent5107740603d10feed6104afd75042970cb392843
netsniff: Allow filter input pcap file to output pcap

It might be useful to filter out interesting traffic
from input pcap to output pcap file which will contain only
filtered packets:

    $ netsniff-ng -i input.pcap -o output.pcap ip src 192.168.1.198

Now it is possible by specifying output pcap file with ".pcap"
extension, otherwise the trafgen file will be generated as by default.

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
[tklauser: small wording and whitespace adjustment]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng.8
netsniff-ng.c