Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8257235

InetAddress.isReachable should use non-privileged ICMP sockets when available

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:
      None

      Description


      Linux and macOS support a way for non-root applications to use ICMP ping. In both cases, a INET (and INET6??) socket can be created with the IPPROTO_ICMP protocol and the kernel ensures it can only be used for ping. Discussed here:

      https://mail.openjdk.java.net/pipermail/net-dev/2020-November/014931.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                alanb Alan Bateman
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: