1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 16:39:03 +00:00

Merge r30175-176 from nmap-npingchanges: Add support for Node Information queries in print(). Also, add the ability to pass u64 to setNonce()

This commit is contained in:
luis
2013-03-29 18:19:09 +00:00
parent d8017b1a95
commit 49e06da86f
3 changed files with 49 additions and 7 deletions

View File

@@ -1263,7 +1263,7 @@ bool PacketParser::is_response(PacketElement *sent, PacketElement *rcvd){
case ICMPv6_NODEINFORESP:
if(sent_icmp6->getNodeInfoFlags() != inner_icmp6->getNodeInfoFlags() )
return false;
if( memcmp(sent_icmp6->getNonce(), inner_icmp6->getNonce(), NI_NONCE_LEN)!=0 )
if(sent_icmp6->getNonce() != inner_icmp6->getNonce())
return false;
if(sent_icmp6->getQtype() != inner_icmp6->getQtype() )
return false;
@@ -1472,7 +1472,7 @@ bool PacketParser::is_response(PacketElement *sent, PacketElement *rcvd){
* responses with the same Nonce value that we used in the query. */
if(rcvd_icmp6->getType()!=ICMPv6_NODEINFORESP)
return false;
if( memcmp(sent_icmp6->getNonce(), rcvd_icmp6->getNonce(), NI_NONCE_LEN)!=0 )
if(sent_icmp6->getNonce() != rcvd_icmp6->getNonce())
return false;
break;