summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <donaldsharp72@gmail.com>2025-02-16 08:09:45 -0500
committerGitHub <noreply@github.com>2025-02-16 08:09:45 -0500
commite3bd25eb53332b0d05c29208ade16c6a94db6790 (patch)
tree50d735767ddea387048063de89ba493a8480d0da
parent1ccd0eb4903b4ce017f57935c82ee24c13360ae9 (diff)
parent17e75423bcbdf5407831a51f996e9ab336f8b9fa (diff)
Merge pull request #18185 from FRRouting/mergify/bp/stable/10.1/pr-18109
bgpd: fix vty output of evpn route-target AS4 (backport #18109)
-rw-r--r--bgpd/bgp_evpn_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn_vty.c b/bgpd/bgp_evpn_vty.c
index 3e6a7ac784..d9985c9d5b 100644
--- a/bgpd/bgp_evpn_vty.c
+++ b/bgpd/bgp_evpn_vty.c
@@ -113,7 +113,7 @@ static void display_vrf_import_rt(struct vty *vty, struct vrf_irt_node *irt,
break;
case ECOMMUNITY_ENCODE_AS4:
- pnt = ptr_get_be32(pnt, &eas.val);
+ pnt = ptr_get_be32(pnt, &eas.as);
eas.val = (*pnt++ << 8);
eas.val |= (*pnt++);
@@ -222,7 +222,7 @@ static void display_import_rt(struct vty *vty, struct irt_node *irt,
break;
case ECOMMUNITY_ENCODE_AS4:
- pnt = ptr_get_be32(pnt, &eas.val);
+ pnt = ptr_get_be32(pnt, &eas.as);
eas.val = (*pnt++ << 8);
eas.val |= (*pnt++);