freebsd-src/sbin/ping
Jose Luis Duran 20b4130314 ping: Print the IP options of the original packet
When an ICMP packet contains an IP packet in its payload, and that
original IP packet contains options, these options were not displayed
accordingly in pr_iph().

pr_iph() is a function that prints the original "quoted packet" IP
header, with only an IP struct as an argument.  The IP struct does not
contain IP options, and it is not guaranteed that the options will be
contiguous in memory to the IP struct after
d9cacf605e.

Pass the raw ICMP data along with the IP struct, in order to print the
options, if any.

Reviewed by:	markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D38469
2023-03-19 12:23:06 -04:00
..
tests ping: Print the IP options of the original packet 2023-03-19 12:23:06 -04:00
main.c ping: main.c: Consistent use of white space/tabs 2022-11-03 10:39:32 -04:00
main.h ping: split the visual part of -f into a new option -. 2022-04-18 18:10:50 +02:00
Makefile ping: allow building without INET support 2020-11-28 23:24:19 +00:00
Makefile.depend
Makefile.depend.options
ping.8 ping(8): man page cleanup 2023-01-02 00:48:25 +00:00
ping.c ping: Print the IP options of the original packet 2023-03-19 12:23:06 -04:00
ping.h Merge ping6 to ping 2020-11-26 04:29:30 +00:00
ping6.c ping6: Use errx to avoid appending a specious error message 2023-03-14 11:58:02 -04:00
ping6.h Merge ping6 to ping 2020-11-26 04:29:30 +00:00
utils.c
utils.h