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, Oct 13, 10:06 PM
Unknown Object (File)
Tue, Oct 13, 11:43 AM
Unknown Object (File)
Thu, Oct 8, 6:02 PM
Unknown Object (File)
Tue, Oct 6, 4:34 PM
Unknown Object (File)
Mon, Oct 5, 1:50 AM
Unknown Object (File)
Mon, Oct 5, 1:12 AM
Unknown Object (File)
Sun, Oct 4, 5:02 PM
Unknown Object (File)
Sep 16 2026, 3:04 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable