freebsd-src/sbin/ping/tests
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
..
in_cksum_test.c ICMP checksum test: Fix for big endian 2021-01-11 19:03:46 -07:00
injection.py Add test cases for ping with IP options in the response 2022-12-25 22:59:58 -07:00
Makefile ping: Add ATF-Python tests 2023-02-20 10:34:33 +00:00
ping_6_c1_s8_t1.out Merge ping6 to ping 2020-11-26 04:29:30 +00:00
ping_c1_s8_t1_S1.out ping: if -S srcaddr uses a numeric address, use that protocol 2022-05-20 18:30:47 -05:00
ping_c1_s56_t1.out
ping_c1_s56_t1_S127.out ping: if -S srcaddr uses a numeric address, use that protocol 2022-05-20 18:30:47 -05:00
ping_test.sh ping: Print the IP options of the original packet 2023-03-19 12:23:06 -04:00
test_ping.py ping: Print the IP options of the original packet 2023-03-19 12:23:06 -04:00