]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Set encap attribute if received and parsed 16652/head
authorDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 25 Aug 2024 16:15:10 +0000 (19:15 +0300)
committerDonatas Abraitis <donatas@opensourcerouting.org>
Sun, 25 Aug 2024 16:15:10 +0000 (19:15 +0300)
It's not used much in the code, but we should have it set when everything is fine.

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

index 9a42ea81990c9988cfbf8b5710456d77a17338ce..0808b35c6cf9882b81cc5d1c6c4b8e303eb101ac 100644 (file)
@@ -2911,6 +2911,8 @@ static int bgp_attr_encap(struct bgp_attr_parser_args *args)
                                          args->total);
        }
 
+       SET_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_ENCAP));
+
        return BGP_ATTR_PARSE_PROCEED;
 
 encap_ignore: