Page MenuHomeFreeBSD

ping: Avoid magic numbers
ClosedPublic

Authored by jlduran on Mar 16 2023, 4:35 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 8, 10:25 PM
Unknown Object (File)
Sun, Oct 27, 12:34 PM
Unknown Object (File)
Sep 24 2024, 8:34 AM
Unknown Object (File)
Sep 24 2024, 7:25 AM
Unknown Object (File)
Sep 24 2024, 2:31 AM
Unknown Object (File)
Sep 23 2024, 1:34 PM
Unknown Object (File)
Sep 20 2024, 1:35 PM
Unknown Object (File)
Sep 15 2024, 7:24 PM

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