From c1e1a12e2c32045fb552593cf6cd6f8576f162da Mon Sep 17 00:00:00 2001 From: david Date: Fri, 24 Feb 2012 05:01:41 +0000 Subject: [PATCH] Use ip_get_data_any, not ip_get_data, in ippackethdrinfo. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The difference is that ip_get_data_any doesn't require there to be an upper-layer header at the end of an IPv6 chain. This avoids the message "BOGUS! Can't parse supposed IP packet" during -sO -6 scan. The -sO sends non–upper-layer headers, some even with empty payloads, and so causes this situation often. --- libnetutil/netutil.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetutil/netutil.cc b/libnetutil/netutil.cc index 4c557d862..eb9151342 100644 --- a/libnetutil/netutil.cc +++ b/libnetutil/netutil.cc @@ -2167,7 +2167,7 @@ const char *ippackethdrinfo(const u8 *packet, u32 len, int detail) { int reserved_flag = 0; /* True if IP Reserved flag is set. */ datalen = len; - data = (u8 *) ip_get_data(packet, &datalen, &hdr); + data = (u8 *) ip_get_data_any(packet, &datalen, &hdr); if (data == NULL) return "BOGUS! Can't parse supposed IP packet";