mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Allow -PY (SCTP INIT ping) with IPv6.
Seems to send the right packets, and the code is there to do it, but I can't find SCTP-enabled IPv6 servers to test against.
This commit is contained in:
parent
49a57d8dde
commit
26dbb3bed8
1 changed files with 2 additions and 2 deletions
|
|
@ -421,8 +421,8 @@ dialog where you can start NPF if you have administrator privileges.";
|
|||
fatal("Sorry, UDP Ping (-PU) only works if you are root (because we need to read raw responses off the wire)");
|
||||
}
|
||||
|
||||
if ((pingtype & PINGTYPE_SCTP_INIT) && (!isr00t || af() != AF_INET)) {
|
||||
fatal("Sorry, SCTP INIT Ping (-PY) only works if you are root (because we need to read raw responses off the wire) and only for IPv4 (cause fyodor is too lazy right now to add IPv6 support and nobody has sent a patch)");
|
||||
if ((pingtype & PINGTYPE_SCTP_INIT) && (!isr00t)) {
|
||||
fatal("Sorry, SCTP INIT Ping (-PY) only works if you are root (because we need to read raw responses off the wire)");
|
||||
}
|
||||
|
||||
if ((pingtype & PINGTYPE_PROTO) && (!isr00t || af() != AF_INET)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue