mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
d8017b1a95
commit
49e06da86f
3 changed files with 49 additions and 7 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue