]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Update nexthop handling for route addition/deletion in preparation for mpath.
authormelifaro <melifaro@FreeBSD.org>
Wed, 9 Sep 2020 22:07:54 +0000 (22:07 +0000)
committermelifaro <melifaro@FreeBSD.org>
Wed, 9 Sep 2020 22:07:54 +0000 (22:07 +0000)
commitd43f7905e54be266927157f3c7541c663bbdf614
tree9bfc9114ec35f675ad92feab7f21bf063b084915
parent72efa88cea892da13c3bc5bb763bc8eb00d7d80f
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