freebsd-src/sbin/ping/tests
Jose Luis Duran 1dc1f6bd31 ping: Remove pr_retip()
Ping used to provide some sort of packet sniffing capabilities, this was
in an era where hubs were used and tcpdump wasn't invented.

pr_iph() is a function that prints the IP header of the packet.

pr_retip() is essentially a wrapper function to pr_iph(), that also
displays the source and destination ports of a TCP or UDP packet.

After ef9e6dc7ee some of this
functionality was almost removed, to only display packets sent by us
(26+ years ago).

At this point, reaching this code path was only possible by doctoring
the original packet.

After 46d7b45a26 this code path can never
be reached.

Remove the code.

Reviewed by:	markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D38475
2023-03-19 12:23:22 -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: Remove pr_retip() 2023-03-19 12:23:22 -04:00