From 62199a466615e58635409833e2db28ac5b5877bc Mon Sep 17 00:00:00 2001 From: luis Date: Fri, 29 Mar 2013 13:42:41 +0000 Subject: [PATCH] Merged r27540 from nmap-npingchages: Fix bug: convert to u32 after fixing the endianness. --- libnetutil/ICMPv6Header.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnetutil/ICMPv6Header.cc b/libnetutil/ICMPv6Header.cc index e885db1fa..c79836e8b 100755 --- a/libnetutil/ICMPv6Header.cc +++ b/libnetutil/ICMPv6Header.cc @@ -699,7 +699,7 @@ u32 ICMPv6Header::getSequence() const{ case ICMPv6_ECHO: case ICMPv6_ECHOREPLY: - return ntohl( ((u32)this->h_e->seq) ); + return (u32)ntohs(this->h_e->seq); break; } return 0;