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)
Sun, Mar 22, 12:07 AM
Unknown Object (File)
Wed, Mar 18, 6:45 PM
Unknown Object (File)
Tue, Mar 17, 4:19 AM
Unknown Object (File)
Mon, Mar 16, 7:10 PM
Unknown Object (File)
Fri, Mar 13, 12:04 PM
Unknown Object (File)
Fri, Mar 13, 3:50 AM
Unknown Object (File)
Mon, Mar 9, 9:49 PM
Unknown Object (File)
Sun, Mar 8, 12:34 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