diff options
author | Russ White <russ@riw.us> | 2023-09-26 16:07:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 16:07:02 +0200 |
commit | 8e755a03a3257644c0542a8ee658d2c08230c0ae (patch) | |
tree | a4d58a1595c3884d9555d88d533fd2043a8de21d /bgpd/bgp_packet.c | |
parent | Merge pull request #14487 from opensourcerouting/fix/doc_bullet_new_line_missing (diff) | |
parent | doc: add information to display bgp-ls attributes (diff) | |
download | frr-8e755a03a3257644c0542a8ee658d2c08230c0ae.tar.xz frr-8e755a03a3257644c0542a8ee658d2c08230c0ae.zip |
Merge pull request #12649 from louis-6wind/bgp-link-state
bgpd: add basic support of BGP Link-State RFC7752
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r-- | bgpd/bgp_packet.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index abbc298e4..d47324593 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -48,6 +48,7 @@ #include "bgpd/bgp_io.h" #include "bgpd/bgp_keepalives.h" #include "bgpd/bgp_flowspec.h" +#include "bgpd/bgp_linkstate_tlv.h" #include "bgpd/bgp_trace.h" DEFINE_HOOK(bgp_packet_dump, @@ -349,7 +350,11 @@ int bgp_nlri_parse(struct peer *peer, struct attr *attr, return bgp_nlri_parse_evpn(peer, attr, packet, mp_withdraw); case SAFI_FLOWSPEC: return bgp_nlri_parse_flowspec(peer, attr, packet, mp_withdraw); + case SAFI_LINKSTATE: + return bgp_nlri_parse_linkstate(peer, attr, packet, + mp_withdraw); } + return BGP_NLRI_PARSE_ERROR; } @@ -1896,6 +1901,8 @@ static int bgp_open_receive(struct peer_connection *connection, peer->afc[AFI_L2VPN][SAFI_EVPN]; peer->afc_nego[AFI_IP6][SAFI_FLOWSPEC] = peer->afc[AFI_IP6][SAFI_FLOWSPEC]; + peer->afc_nego[AFI_LINKSTATE][SAFI_LINKSTATE] = + peer->afc[AFI_LINKSTATE][SAFI_LINKSTATE]; } /* Verify valid local address present based on negotiated |