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)
Fri, Jun 26, 2:08 AM
Unknown Object (File)
Thu, Jun 25, 1:56 AM
Unknown Object (File)
Sun, Jun 21, 8:19 PM
Unknown Object (File)
Sat, Jun 20, 11:05 PM
Unknown Object (File)
Sat, Jun 20, 5:14 PM
Unknown Object (File)
Wed, Jun 17, 5:28 AM
Unknown Object (File)
Sun, Jun 14, 7:14 PM
Unknown Object (File)
May 18 2026, 1:05 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