commit d5ace077e98b9f73bbd323ac611555b261e6dd16 parent 118b7fd9d3161012513ba4982c80ea6475c5e0fe Author: Jordan Ritter <jpr5@darkridge.com> Date: Sun, 22 Apr 2001 23:27:16 +0000 added -p (don't go into promiscuous mode) Diffstat:
M | ngrep.c | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ngrep.c b/ngrep.c @@ -154,6 +154,9 @@ int main(int argc, char **argv) { case 'e': show_empty++; break; + case 'p': + promisc = 0; + break; case 'q': quiet++; break; @@ -786,8 +789,8 @@ void update_windowsize(int e) { void usage(int e) { - printf("usage: ngrep <-hXViwqevxlDtT> <-IO pcap_dump> <-n num> <-d dev> <-A num>\n" - " <match expression> <bpf filter>\n"); + printf("usage: ngrep <-hXViwqpevxlDtT> <-IO pcap_dump> <-n num> <-d dev> <-A num>\n" + " <match expression> <bpf filter>\n"); exit(e); }