Page MenuHomeFreeBSD

Simplify nhop operations in ip_output().
ClosedPublic

Authored by melifaro on Aug 7 2021, 11:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 21, 9:19 PM
Unknown Object (File)
Tue, Jan 14, 12:58 PM
Unknown Object (File)
Fri, Jan 10, 10:30 PM
Unknown Object (File)
Wed, Jan 8, 1:22 PM
Unknown Object (File)
Wed, Jan 8, 6:25 AM
Unknown Object (File)
Sat, Jan 4, 5:00 PM
Unknown Object (File)
Dec 14 2024, 10:34 AM
Unknown Object (File)
Dec 5 2024, 7:18 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