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)
Sat, Feb 21, 10:51 PM
Unknown Object (File)
Thu, Feb 12, 7:30 PM
Unknown Object (File)
Sun, Feb 8, 4:41 AM
Unknown Object (File)
Sun, Feb 8, 1:30 AM
Unknown Object (File)
Feb 3 2026, 2:09 AM
Unknown Object (File)
Feb 1 2026, 8:54 AM
Unknown Object (File)
Jan 31 2026, 4:39 AM
Unknown Object (File)
Dec 11 2025, 1:32 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