From d84cae2db79e87e0609bd79a55829c99b1813142 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Sun, 25 Aug 2024 19:15:10 +0300 Subject: [PATCH] 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 --- bgpd/bgp_attr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c index 9a42ea8199..0808b35c6c 100644 --- a/bgpd/bgp_attr.c +++ b/bgpd/bgp_attr.c @@ -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: -- 2.39.5