freebsd-src/sbin/ping
Jose Luis Duran 3c7ef29e89 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

(cherry picked from commit 491263d7a6)
2023-03-24 12:58:01 -04:00
..
tests Add test cases for ping with IP options in the response 2023-01-27 12:27:47 -07:00
main.c ping: main.c: Consistent use of white space/tabs 2022-11-10 12:01:29 -05:00
main.h ping: split the visual part of -f into a new option -. 2022-12-24 07:50:04 +01: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-27 12:27:47 -07:00
ping.c ping: Avoid magic numbers 2023-03-24 12:58:01 -04:00
ping.h Merge ping6 to ping 2020-11-26 04:29:30 +00:00
ping6.c ping: split the visual part of -f into a new option -. 2022-12-24 07:50:04 +01: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