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
F157051882: D24731.id71451.diff
Mon, May 18, 3:58 AM
F157026510: D24731.id.diff
Mon, May 18, 12:42 AM
F156989307: D24731.id71493.diff
Sun, May 17, 8:15 PM
Unknown Object (File)
Sun, May 10, 9:45 PM
Unknown Object (File)
Sat, May 9, 6:53 PM
Unknown Object (File)
Sat, May 9, 3:46 PM
Unknown Object (File)
Sat, May 9, 10:17 AM
Unknown Object (File)
Thu, Apr 30, 3:55 PM
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.