From 692f904579afffbec7c30fe366ec5edb732a65cb Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 4 Feb 2007 02:12:59 +0000 Subject: [PATCH] Print IP addresses in ippackethdrinfo() in tcpip.cc when there's an unknown protocol (like with -sO) --- tcpip.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcpip.cc b/tcpip.cc index b2f8e2544..db59758d2 100644 --- a/tcpip.cc +++ b/tcpip.cc @@ -636,8 +636,8 @@ static const char *ippackethdrinfo(const u8 *packet, u32 len) { snprintf(protoinfo, sizeof(protoinfo), "ICMP %s > %s %s (type=%d/code=%d) %s", srchost, dsthost, icmptype, ping->type, ping->code, ipinfo); } else { - snprintf(protoinfo, sizeof(protoinfo), "Unknown protocol (%d): %s", - ip->ip_p, ipinfo); + snprintf(protoinfo, sizeof(protoinfo), "Unknown protocol (%d) %s > %s: %s", + ip->ip_p, srchost, dsthost, ipinfo); } return protoinfo;