Page MenuHomeFreeBSD

Correct nh_family
AbandonedPublic

Authored by zlei on Aug 21 2021, 3:27 PM.
Referenced Files
Unknown Object (File)
Wed, Apr 17, 8:14 PM
Unknown Object (File)
Jan 8 2024, 10:41 PM
Unknown Object (File)
Jan 1 2024, 12:05 AM
Unknown Object (File)
Dec 21 2023, 9:48 AM
Unknown Object (File)
Nov 5 2023, 5:29 PM
Unknown Object (File)
Nov 1 2023, 10:58 PM
Unknown Object (File)
Oct 23 2023, 2:29 PM
Unknown Object (File)
Oct 4 2023, 4:28 PM
Subscribers

Details

Reviewers
melifaro
Summary

The nh_family should be address family of route's nexthop.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

zlei requested review of this revision.Aug 21 2021, 3:27 PM

It's a bit more complex than that.
For the interface routes (e.g. ones w/o the gateway), you may end up with AF_LINK family in RTAX_GATEWAY.
So, you need to check if RTF_GATEWAY is set prior to using RTAX_GATEWAY.

I'd rather not touch it now - there is something WIP that will change this part of the code anyway.

I'd rather not touch it now - there is something WIP that will change this part of the code anyway.

OK.