ongrep

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

commit bd3ed5738dcb15c91ef123bb246aa9f30144b826
parent eaf581b6edfa2fcb750af3e9ba60cb96783ab6df
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Mon,  4 Sep 2000 19:32:09 +0000

added version string define now that ngrep is using cvs
merged vacuum's tokenring patch

Diffstat:
Mngrep.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ngrep.c b/ngrep.c @@ -297,10 +297,13 @@ int main(int argc, char **argv) { switch(pcap_datalink(pd)) { case DLT_EN10MB: - case DLT_IEEE802: link_offset = ETHHDR_SIZE; break; + case DLT_IEEE802: + link_offset = TOKENRING_SIZE; + break; + case DLT_FDDI: link_offset = FDDIHDR_SIZE; break; @@ -713,6 +716,6 @@ void usage(int e) { void version(void) { - printf("ngrep: %s\n", rcsver); + printf("ngrep: V%s, %s\n", VERSION, rcsver); exit(0); }