Page MenuHomeFreeBSD

Add rib_lookup() sockaddr lookup wrapper and make ifa_ifwithroute use it.
ClosedPublic

Authored by melifaro on May 6 2020, 8:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 18, 6:25 PM
Unknown Object (File)
Fri, Oct 17, 11:37 AM
Unknown Object (File)
Wed, Oct 1, 2:34 AM
Unknown Object (File)
Sat, Sep 27, 3:03 AM
Unknown Object (File)
Sep 20 2025, 2:16 AM
Unknown Object (File)
Aug 30 2025, 7:43 PM
Unknown Object (File)
Jul 4 2025, 6:00 PM
Unknown Object (File)
Jul 4 2025, 9:00 AM
Subscribers

Details

Summary

Create rib_lookup() wrapper around per-af dataplane lookup functions.
This will help in the cases of having control plane af-agnostic code.

Switch ifa_ifwithroute() to use this function instead of rtalloc1().

Diff Detail

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

Event Timeline

sys/net/route/route_helpers.c
113 ↗(On Diff #71451)

We usually don't use tab after #ifdef, only after #define.

116 ↗(On Diff #71451)

It seems & is not needed here.

124 ↗(On Diff #71451)

The same.

This revision was not accepted when it landed; it landed in state Needs Review.May 7 2020, 8:12 AM
This revision was automatically updated to reflect the committed changes.