go-ping / ping

ICMP Ping library for Go
MIT License
1.31k stars 344 forks source link

What does it mean to ping over "udp"? #230

Closed monegim closed 9 months ago

monegim commented 9 months ago

Hi,

I tried to read the source code. however, I could not understand what it means to use "UDP" over ICMP or as a ping protocol. Should not be a port for pinging over "UDP"?

In network view, should the firewall on the host allow for "ICMP" or "UDP"?

SuperQ commented 9 months ago

It's confusing, but UDP actually refers to which kernel API is used to send ICMP packets. It does not actually send UDP packets.

Also note, this project is abandoned.