The nh_family should be address family of route's nexthop.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
Comment Actions
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.
Comment Actions
I'd rather not touch it now - there is something WIP that will change this part of the code anyway.