Page MenuHomeFreeBSD

Simplify nhop operations in ip_output().
ClosedPublic

Authored by melifaro on Aug 7 2021, 11:24 AM.
Tags
None
Referenced Files
F170624467: D31451.id93400.diff
Sat, Sep 5, 4:57 PM
F170624405: D31451.id93400.diff
Sat, Sep 5, 4:57 PM
Unknown Object (File)
Fri, Sep 4, 1:18 PM
Unknown Object (File)
Thu, Sep 3, 8:13 PM
Unknown Object (File)
Thu, Sep 3, 1:35 PM
Unknown Object (File)
Thu, Sep 3, 1:35 PM
Unknown Object (File)
Thu, Sep 3, 9:30 AM
Unknown Object (File)
Thu, Sep 3, 6:02 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