Page MenuHomeFreeBSD

ping: Avoid magic numbers
ClosedPublic

Authored by jlduran on Mar 16 2023, 4:35 PM.
Tags
None
Referenced Files
F107075293: D39125.diff
Thu, Jan 9, 5:47 PM
Unknown Object (File)
Dec 10 2024, 6:35 PM
Unknown Object (File)
Dec 8 2024, 1:07 PM
Unknown Object (File)
Dec 2 2024, 11:09 PM
Unknown Object (File)
Nov 25 2024, 9:28 AM
Unknown Object (File)
Nov 22 2024, 7:57 PM
Unknown Object (File)
Nov 13 2024, 9:48 PM
Unknown Object (File)
Nov 12 2024, 4:28 AM

Details

Summary

The sizeof(struct ip) is 20.
The sizeof(struct in_addr) is 4.
No functional change intended.

Test Plan
kyua test -k /usr/tests/Kyuafile sbin/ping/ping_test
kyua test -k /usr/tests/Kyuafile sbin/ping/test_ping.py

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable