Page MenuHomeFreeBSD

Add nhop parameter to rti_filter callback.
ClosedPublic

Authored by melifaro on Apr 16 2020, 8:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 26, 6:48 AM
Unknown Object (File)
Wed, Dec 24, 1:33 PM
Unknown Object (File)
Nov 30 2025, 9:24 PM
Unknown Object (File)
Nov 27 2025, 3:25 PM
Unknown Object (File)
Nov 20 2025, 9:19 PM
Unknown Object (File)
Nov 20 2025, 9:18 PM
Unknown Object (File)
Nov 20 2025, 9:18 PM
Unknown Object (File)
Nov 20 2025, 9:10 PM
Subscribers

Details

Summary

One of the goals of the new routing KPI defined in r359823 is to entirely hide`struct rtentry` from the consumers.
It will allow to improve routing subsystem internals and deliver more features much faster.
This change is one of the ongoing changes to eliminate direct struct rtentry field accesses.

Additionally, with the followup multipath changes, single
rtentry can point to multiple nexthops.

With that in mind, convert rti_filter callback used when traversing the routing table to accept
pair (rt, nhop) instead of nexthop.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ae added inline comments.
sys/netinet/in_rmx.c
231 ↗(On Diff #70635)

A space is missed.

This revision is now accepted and ready to land.Apr 16 2020, 11:34 AM
This revision was automatically updated to reflect the committed changes.