ongrep

A cleaned up fork of ngrep for OpenBSD
git clone git://git.sgregoratto.me/ongrep
Log | Files | Refs | README | LICENSE

commit b24d1e7e0999112d5ac074dee118b8223453dcaa
parent 84c9a7f577128821b68cc765b77385ebc7c60688
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Wed,  4 May 2005 19:02:55 +0000

change pcap accumulator "timeout" value from 1s to 100ms -- on unix
this doesn't seem to matter, but on win32 this is the interval
pcap_loop() will wait (to accumulate packets) before invoking the
callback function.  on win32 this made it seem as though ngrep only
ran once a second.  now it will run every 100ms, which makes it seems
a lot snappier.

Diffstat:
Mngrep.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ngrep.c b/ngrep.c @@ -104,7 +104,7 @@ static char rcsver[] = "$Revision$"; * Configuration Options */ -uint16_t snaplen = 65535, limitlen = 65535, promisc = 1, to = 1000; +uint16_t snaplen = 65535, limitlen = 65535, promisc = 1, to = 100; uint16_t match_after = 0, keep_matching = 0, matches = 0, max_matches = 0; uint8_t re_match_word = 0, re_ignore_case = 0, re_multiline_match = 1;