Nmap Development mailing list archives

Re: [NSE][patch] targets-sniffer: sniff IPv6 addresses, fix newtargets for -6


From: Daniel Miller <bonsaiviking () gmail com>
Date: Fri, 09 Mar 2012 12:31:32 -0600

On 03/09/2012 11:49 AM, Daniel Miller wrote:
List,

Here's a patch to add IPv6 address sniffing to targets-sniffer. The major difference is changing the BPF from "ip" to "ip or ip6". I had to add a couple checks for NDP multicast addresses to check_if_valid, and I may have missed some other invalid IPv6 addresses.

Attaching updated patch. I was correct in thinking I missed some addresses: All IPv6 addresses starting with 'FF' are multicast, so I now test for that instead.

Dan

Attachment: targets-sniffer-ip6.diff
Description:

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://seclists.org/nmap-dev/

Current thread: