X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/55e303ae13a4cf49d70f2294092726f2fffb9ef2..39236c6e673c41db228275375ab7fdb0f837b292:/bsd/man/man4/icmp.4?ds=sidebyside diff --git a/bsd/man/man4/icmp.4 b/bsd/man/man4/icmp.4 index 65015098d..4013ef692 100644 --- a/bsd/man/man4/icmp.4 +++ b/bsd/man/man4/icmp.4 @@ -87,6 +87,9 @@ them (based on the destination address). Incoming packets are received with the .Tn IP header and options intact. +Note that the ip_off and ip_len fields are in host byte order. +For more information about the IP header structure, see +.Xr ip 4 . .Ss "Non-privileged ICMP" .Pp .Tn ICMP @@ -96,13 +99,6 @@ socket type without requiring root privileges. The synopsis is the following: .Pp .Fn socket AF_INET SOCK_DGRAM IPPROTO_ICMP .Pp -This can be used by non root privileged processes to send -.Tn ICMP -echo requests to gauge the quality of the connectivity to a host, to receive -.Tn ICMP -destination unreachable message for path MTU discovery, or to receveive -time exceeded message for traceroute. -.Pp Datagram oriented .Tn ICMP sockets offer a subset of the functionality available to raw @@ -116,6 +112,16 @@ The minimal length of an .Tn ICMP message request is eight (8) octets. .Pp +The advantage of using datagram oriented +.Tn ICMP +sockets is that even a non-privileged process can use +.Tn ICMP +echo requests to gauge the quality of the connectivity to a host, +or to receive +.Tn ICMP +destination unreachable message for path MTU discovery, or to receive +time exceeded messages for traceroute. +.Pp The following .Tn IP level option can be used with datagram oriented @@ -195,10 +201,10 @@ or header. .El .Sh SEE ALSO -.Xr send 2 , .Xr recv 2 , -.Xr intro 4 , +.Xr send 2 , .Xr inet 4 , +.Xr intro 4 , .Xr ip 4 .Sh HISTORY The