summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-03-23 15:18:14 -0400
committerGitHub <noreply@github.com>2025-03-23 15:18:14 -0400
commit26f939b17def81d6cda9463b67bab352a387c011 (patch)
tree3311b471bee7751a5fe685fd76d1e6da87b87585
parent2ede906fd49293cf572be8a8c9ca2104d67724d3 (diff)
parent6ca2fae08d955fb09f7a7a2bc543a40e3bddc7da (diff)
Merge pull request #18465 from opensourcerouting/fix/backport_4ee47bfc83e1977458a6049c653019d6b7576320_10.1
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 261b7d240c..bcdc193cab 100644
--- a/bgpd/bgp_routemap.c
+++ b/bgpd/bgp_routemap.c
@@ -1253,8 +1253,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;
}