ongrep

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

commit 2b405ea1005552b6bc0de870565189ccbe880ce8
parent 23632fb835e9a596ad203a4ae489c7ab175e6107
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Sun, 20 Feb 2005 03:41:26 +0000

reorganize includes and variable definitions

Diffstat:
Mngrep.c | 24++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/ngrep.c b/ngrep.c @@ -63,15 +63,6 @@ #include <netinet/igmp.h> #endif -#if defined(_WIN32) -#define strcasecmp stricmp -struct timeval delay_tv; -FD_SET delay_fds; -SOCKET delay_socket = 0; -#endif - -#include <pcap.h> - #include <stdlib.h> #include <string.h> #include <signal.h> @@ -81,9 +72,7 @@ SOCKET delay_socket = 0; #include <sys/ioctl.h> #endif -#ifdef HAVE_CONFIG_H -#include "config.h" -#endif +#include <pcap.h> #if USE_PCRE #include "pcre-5.0/pcre.h" @@ -91,9 +80,20 @@ SOCKET delay_socket = 0; #include "regex-0.12/regex.h" #endif +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "ngrep.h" +#if defined(_WIN32) +#define strcasecmp stricmp +struct timeval delay_tv; +FD_SET delay_fds; +SOCKET delay_socket = 0; +#endif + static char rcsver[] = "$Revision$"; unsigned snaplen = 65535, limitlen = 65535, promisc = 1, to = 1000;