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 14, 1:16 PM
Unknown Object (File)
Fri, Sep 26, 7:18 AM
Unknown Object (File)
Wed, Sep 17, 6:08 AM
Unknown Object (File)
Aug 27 2025, 9:37 PM
Unknown Object (File)
Aug 20 2025, 6:51 AM
Unknown Object (File)
Aug 14 2025, 10:37 PM
Unknown Object (File)
Jul 21 2025, 11:45 AM
Unknown Object (File)
Jul 15 2025, 12:18 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