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

(cherry picked from commit 491263d7a640a85a6be40fd0c0a9397d072f0847)

Details

Provenance
jlduranAuthored on Mar 17 2023, 1:24 PM
markjCommitted on Mar 24 2023, 4:58 PM
Reviewer
asomers
Differential Revision
D39125: ping: Avoid magic numbers
Parents
rGc9f2ffe5f9c9: printf(9): add MLINKS for vlog(9) and vprintf(9)
Branches
Unknown
Tags
Unknown