HomeFreeBSD

ping: Avoid magic numbers

Description

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

Details

Provenance
jlduran_gmail.comAuthored on Mar 17 2023, 1:24 PM
markjCommitted on Mar 17 2023, 1:24 PM
Reviewer
asomers
Differential Revision
D39125: ping: Avoid magic numbers
Parents
rGff6d60946a0e: amd64 acpi_wakeup.c: fix typo
Branches
Unknown
Tags
Unknown