]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: add mpls vpn nh label bind cache struct and apis
authorLouis Scalbert <louis.scalbert@6wind.com>
Tue, 2 May 2023 14:38:53 +0000 (16:38 +0200)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 16 Jun 2023 08:54:58 +0000 (10:54 +0200)
commit29b49f67eb3c25139bfcd27ec96a2fb9b3746b16
treed29cc267a044d916f2e5d473c04b689bf46546e5
parent73e9ce89b909419728825723b60435d92a0e2723
bgpd: add mpls vpn nh label bind cache struct and apis

In the context of the ASBR facing an EBGP neighbor, or
facing an IBGP neighbor where the BGP updates received
are re-advertised with a modified next-hop, a new local
label will be re-advertised too, to replace the original
one.

Create a binding table, in the form of a hash list, from the
original labels to the new labels. Since labels can be the
same on several routers, set the next-hop and the label as
the keys. Add the needed API functions to manage the hash
list.

Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
bgpd/bgp_mplsvpn.c
bgpd/bgp_mplsvpn.h
bgpd/bgpd.c
bgpd/bgpd.h