mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 15:09:02 +00:00
setting default protocols for IPProto Ping to ICMP, IGMP and IPIP encapsulation (removing TCP/UDP and adding IPIP).
This commit is contained in:
@@ -657,12 +657,11 @@ you would expect.</para>
|
|||||||
takes the same format as with the port lists in the
|
takes the same format as with the port lists in the
|
||||||
previously discussed TCP and UDP host discovery options. If
|
previously discussed TCP and UDP host discovery options. If
|
||||||
no protocols are specified, the default is to send multiple
|
no protocols are specified, the default is to send multiple
|
||||||
IP packets for ICMP (protocol 1), IGMP (protocol 2), TCP
|
IP packets for ICMP (protocol 1), IGMP (protocol 2), and
|
||||||
(protocol 6) and UDP (protocol 17). The default protocols
|
IP-in-IP (protocol 4). The default protocols can be
|
||||||
can be configured at compile-time by changing
|
configured at compile-time by changing DEFAULT_PROTO_PROBE_PORTS
|
||||||
DEFAULT_PROTO_PROBE_PORTS in <filename>nmap.h</filename>.
|
in <filename>nmap.h</filename>. Note that for the ICMP and IGMP,
|
||||||
Note that for the ICMP, IGMP, TCP and UDP protocols, the
|
the packets are sent with the additional headers while other
|
||||||
packets are sent with the additional headers while other
|
|
||||||
protocols are sent with no additional data beyond the IP
|
protocols are sent with no additional data beyond the IP
|
||||||
header (unless the <option>--data-length</option> option is
|
header (unless the <option>--data-length</option> option is
|
||||||
specified).</para>
|
specified).</para>
|
||||||
|
|||||||
4
nmap.h
4
nmap.h
@@ -277,8 +277,8 @@ void *realloc();
|
|||||||
to 113 */
|
to 113 */
|
||||||
#define DEFAULT_UDP_PROBE_PORT 31338 /* The port UDP probes (esp. "ping" probes) go to if unspecified
|
#define DEFAULT_UDP_PROBE_PORT 31338 /* The port UDP probes (esp. "ping" probes) go to if unspecified
|
||||||
by user */
|
by user */
|
||||||
#define DEFAULT_PROTO_PROBE_PORTS { 1, 2, 6, 17 } /* The IPProto ping probes to use if unspecified
|
#define DEFAULT_PROTO_PROBE_PORTS { 1, 2, 4 } /* The IPProto ping probes to use if unspecified
|
||||||
by user */
|
by user */
|
||||||
|
|
||||||
#define MAX_DECOYS 128 /* How many decoys are allowed? */
|
#define MAX_DECOYS 128 /* How many decoys are allowed? */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user