summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-03-23 15:18:33 -0400
committerGitHub <noreply@github.com>2025-03-23 15:18:33 -0400
commit431021c2c9fcced99e548657972422ba7e6fc76b (patch)
tree4a5ff630b68c693a1a3124a23c89ee7f6de2b249
parent24e51889e8605a9dbbb65b80464ebc4185a0abd8 (diff)
parent5960447611b8665a9a967af61e34296255644dc9 (diff)
Merge pull request #18466 from opensourcerouting/fix/backport_4ee47bfc83e1977458a6049c653019d6b7576320_10.0
bgpd: fix `set evpn gateway-ip ipv[46]` route-map
-rw-r--r--bgpd/bgp_routemap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_routemap.c b/bgpd/bgp_routemap.c
index fe6faffa6e..728a30ac81 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -1256,8 +1256,7 @@ route_set_evpn_gateway_ip(void *rule, const struct prefix *prefix, void *object)
/* Set gateway-ip value. */
path->attr->evpn_overlay.type = OVERLAY_INDEX_GATEWAY_IP;
- memcpy(&path->attr->evpn_overlay.gw_ip, &gw_ip->ip.addr,
- IPADDRSZ(gw_ip));
+ path->attr->evpn_overlay.gw_ip = *gw_ip;
return RMAP_OKAY;
}