1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-30 19:39:07 +00:00

Merge from /nmap-exp/david/nmap-ipv6.

This is raw IPv6 packet support for most port and ping scans, Neighbor
Discovery, and traceroute.
This commit is contained in:
david
2011-06-08 01:24:48 +00:00
parent b08c07339a
commit 4aa4a154f9
39 changed files with 3448 additions and 1752 deletions

View File

@@ -117,6 +117,11 @@ struct probespec_icmpdata {
u8 code;
};
struct probespec_icmpv6data {
u8 type;
u8 code;
};
#define PS_NONE 0
#define PS_TCP 1
#define PS_UDP 2
@@ -125,6 +130,7 @@ struct probespec_icmpdata {
#define PS_ARP 5
#define PS_CONNECTTCP 6
#define PS_SCTP 7
#define PS_ICMPV6 8
/* The size of this structure is critical, since there can be tens of
thousands of them stored together ... */
@@ -138,6 +144,7 @@ typedef struct probespec {
struct probespec_udpdata udp; /* PS_UDP */
struct probespec_sctpdata sctp; /* PS_SCTP */
struct probespec_icmpdata icmp; /* PS_ICMP */
struct probespec_icmpv6data icmpv6; /* PS_ICMPV6 */
/* Nothing needed for PS_ARP, since src mac and target IP are
avail from target structure anyway */
} pd;