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

commit 9907d324ab1d36e05c417e59985563b1622f00ec
parent 1ae9f4971084cdcab7561da21d70ff8f6198eb7e
Author: Jordan Ritter <>
Date:   Mon, 11 Sep 2006 09:35:39 +0000

fix bug #1480799: added missing include on BSD|SOLARIS|MACOSX for
inet_ntoa(); on 64bit systems the implicit 32bit int retval
auto-generated by the compiler truncates the 64bit char* pointer
inet_ntoa() returns, causing printf() to choke

Mngrep.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/ngrep.c b/ngrep.c @@ -15,6 +15,7 @@ #include <netinet/in.h> #include <netinet/in_systm.h> #include <net/if.h> +#include <arpa/inet.h> #include <sys/tty.h> #include <pwd.h> #endif