ongrep

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

commit 8d6f550348401164fe5c5558e45e8d5bf1cd0f88
parent b61d57f757a6db6b2ee28e1bacab01450d8dbdc2
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Fri, 15 Mar 2002 18:46:40 +0000

updated with HAVE_LOOP and HAVE_SLL, for DLT_* types only present in newer libpcap

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

diff --git a/ngrep.c b/ngrep.c @@ -380,14 +380,18 @@ int main(int argc, char **argv) { link_offset = RAWHDR_SIZE; break; +#ifdef HAVE_LOOP case DLT_LOOP: +#endif case DLT_NULL: link_offset = LOOPHDR_SIZE; break; +#ifdef HAVE_SLL case DLT_LINUX_SLL: link_offset = ISDNHDR_SIZE; break; +#endif default: fprintf(stderr, "fatal: unsupported interface type %d\n", pcap_datalink(pd));