ongrep

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

commit 16ba99a863a89dab25cbf8e9ca410b19a7494c42
parent a7b86e75d647b218ab5e04390fe58133972b8c36
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Thu, 31 Jan 2008 18:09:13 +0000

fix for bug #1883408: call pcap_loop() with a -1 count, not 0.

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

diff --git a/ngrep.c b/ngrep.c @@ -646,7 +646,7 @@ int main(int argc, char **argv) { drop_privs(); #endif - while (pcap_loop(pd, 0, (pcap_handler)process, 0)); + while (pcap_loop(pd, -1, (pcap_handler)process, 0)); clean_exit(0);