ongrep

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

commit 1bfb4658e7f2e00938b665d9ab983baac9a565cb
parent 4c7eee2e3e1eee5d362b3e84238885de88269b29
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Sat, 25 Jun 2005 21:27:11 +0000

icmp6 data structure has ::icmp6_type/::icmp6_code, not ::icmp_type/::icmp_code

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

diff --git a/ngrep.c b/ngrep.c @@ -762,7 +762,7 @@ void process(u_char *d, struct pcap_pkthdr *h, u_char *p) { len = h->caplen - link_offset - ip_hl - icmphdr_offset; dump_packet(h, p, ip_proto, data, len, - ip_src, ip_dst, ic6->icmp_type, ic6->icmp_code, 0, + ip_src, ip_dst, ic6->icmp6_type, ic6->icmp6_code, 0, icmphdr_offset, fragmented, frag_offset, frag_id); } break; #endif