icmp and raw sockets on linux

Alan Bateman Alan.Bateman at oracle.com
Sun Nov 29 07:37:39 UTC 2020


On 28/11/2020 02:42, Jamie Le Tual wrote:
> :
>
> It all seems to check out (at least on my machine,) the icmp packets 
> look good in wireshark, so the first thing I'm wondering is what the 
> catch must be, because this seems like a simple solution and I'm 
> wondering why it was never done like this.
>
The isReachable methods were added in Java 5 so they pre-date the kernel 
support for non-privileged ICMP. It seems a good idea to explore this 
now and work through any implications for using it.

-Alan.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20201129/0f94738a/attachment.htm>


More information about the net-dev mailing list