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)
Thu, May 9, 4:43 AM
Unknown Object (File)
Thu, May 9, 1:30 AM
Unknown Object (File)
Mon, May 6, 8:42 PM
Unknown Object (File)
Tue, Apr 30, 11:05 AM
Unknown Object (File)
Mon, Apr 29, 5:39 AM
Unknown Object (File)
Apr 9 2024, 5:20 AM
Unknown Object (File)
Apr 8 2024, 8:41 PM
Unknown Object (File)
Apr 1 2024, 1:05 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable