]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Do not send notification twice when parsing NLRI labels 12957/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 5 Mar 2023 18:56:05 +0000 (20:56 +0200)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 5 Mar 2023 18:58:26 +0000 (20:58 +0200)
commitbfeb86dfa895bd131023e23da01b568b53df2e68
treeaa92d9ebb1df904f6fc2e7ed897a7828d4831e50
parente618cc7b21608c493ec321caf2377771c6c4baba
bgpd: Do not send notification twice when parsing NLRI labels

This is already handled in bgp_nlri_parse() by checking error code.

Even more, we should send error sub-code to be according the NLRI type.

If it's MP_UPDATE/MP_WITHDRAW, sub-code should be an Optional Attribute error.

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
bgpd/bgp_label.c