freebsd-src/sbin/ping
Jose Luis Duran 491263d7a6 ping: Avoid magic numbers
The sizeof(struct ip) is 20.
The sizeof(struct in_addr) is 4.

No functional change intended.

Reviewed by:	asomers, markj
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D39125
2023-03-17 09:24:44 -04:00
..
tests ping: Fix the display of Flags/Fragment Offset 2023-03-14 11:58:02 -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 Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
ping.8 ping(8): man page cleanup 2023-01-02 00:48:25 +00:00
ping.c ping: Avoid magic numbers 2023-03-17 09:24:44 -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 ping: Move in_cksum() to a separate source file 2019-08-17 15:25:01 +00:00
utils.h ping: fix include guard symbol name to reflect the header file name 2019-08-23 15:24:18 +00:00