Page MenuHomeFreeBSD

Simplify nhop operations in ip_output().
ClosedPublic

Authored by melifaro on Aug 7 2021, 11:24 AM.
Tags
None
Referenced Files
F159700389: D31451.diff
Wed, Jun 17, 5:28 AM
Unknown Object (File)
Sun, Jun 14, 7:14 PM
Unknown Object (File)
Mon, May 18, 1:05 PM
Unknown Object (File)
May 18 2026, 7:42 AM
Unknown Object (File)
May 12 2026, 7:42 AM
Unknown Object (File)
May 8 2026, 7:13 PM
Unknown Object (File)
May 1 2026, 8:57 PM
Unknown Object (File)
Apr 28 2026, 1:35 PM
Subscribers

Details

Summary
  • Consistently use nh instead of always dereferencing ro->ro_nh inside the if block.
  • Always use nexthop mtu, as it provides guarantee that mtu is accurate.
  • Pass nh pointer to rt_update_ro_flags() to allow upcoming uses of updating ro flags based on different nexthop.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40915
Build 37804: arc lint + arc unit