bgpd: Set encap attribute if received and parsed

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>
This commit is contained in:
Donatas Abraitis 2024-08-25 19:15:10 +03:00
parent b713df85bd
commit d84cae2db7

View 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: