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 22, 7:57 PM
Unknown Object (File)
Wed, Nov 13, 9:48 PM
Unknown Object (File)
Tue, Nov 12, 4:28 AM
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

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