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)
Wed, Apr 22, 5:42 PM
Unknown Object (File)
Tue, Apr 21, 6:52 AM
Unknown Object (File)
Mon, Apr 20, 8:01 PM
Unknown Object (File)
Sun, Apr 19, 8:23 PM
Unknown Object (File)
Fri, Apr 17, 3:41 AM
Unknown Object (File)
Sun, Apr 12, 5:55 PM
Unknown Object (File)
Thu, Apr 9, 9:48 PM
Unknown Object (File)
Thu, Apr 9, 8:55 AM
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