]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Update nexthop handling for route addition/deletion in preparation for mpath.
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Wed, 9 Sep 2020 22:07:54 +0000 (22:07 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Wed, 9 Sep 2020 22:07:54 +0000 (22:07 +0000)
commitaa8f9f90ff9ae6299edbf4073fd81900eed7a7fd
tree9bfc9114ec35f675ad92feab7f21bf063b084915
parente2e80fb3dea8468d78af49a668d0ef6a0200b74f
Update nexthop handling for route addition/deletion in preparation for mpath.

Currently kernel requests deletion for the certain routes with specified gateway,
 but this gateway is not actually checked. With multipath routes, internal gateway
 checking becomes mandatory. Add the logic performing this check.

Generalise RTF_PINNED routes to the generic route priorities, simplifying the logic.

Add lookup_prefix() function to perform exact match search based on data in @info.

Differential Revision: https://reviews.freebsd.org/D26356
sys/net/route/route_ctl.c
sys/net/route/route_var.h