ongrep

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

commit be44b0c135bc06e4a4bc8bcaf1a68c2315cffbe2
parent 08487fcaa62fe56570582ddec91a439eadcc51c7
Author: Jordan Ritter <jpr5@darkridge.com>
Date:   Mon, 17 Nov 2003 16:24:57 +0000

fix error from hand-patching ECN patch

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

diff --git a/ngrep.c b/ngrep.c @@ -484,7 +484,7 @@ void process(u_char *data1, struct pcap_pkthdr* h, u_char *p) { if (tcphdr_offset || !frag_offset) { printf("%s:%d -", inet_ntoa(ip_packet->ip_src), ntohs(tcp->th_sport)); printf("> %s:%d", inet_ntoa(ip_packet->ip_dst), ntohs(tcp->th_dport)); - printf(" [%s%s%s%s%s%s]", + printf(" [%s%s%s%s%s%s%s%s]", (tcp->th_flags & TH_ACK)?"A":"", (tcp->th_flags & TH_SYN)?"S":"", (tcp->th_flags & TH_RST)?"R":"",