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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • None
    • core-libs
    • None


      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

            Unassigned Unassigned
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: