From bf7d66cf43013c25ee91dcaa8ff40b9cbf662d67 Mon Sep 17 00:00:00 2001 From: Yureka Date: Wed, 13 Mar 2024 15:13:32 +0100 Subject: [PATCH] add support for RD nexthops --- src/store.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store.rs b/src/store.rs index b62c518..af6f960 100644 --- a/src/store.rs +++ b/src/store.rs @@ -207,6 +207,8 @@ pub trait Store: Clone + Send + Sync + 'static { let nexthop = match updates.nexthop { BgpAddr::V4(v4) => Some(IpAddr::from(v4)), BgpAddr::V6(v6) => Some(IpAddr::from(v6)), + BgpAddr::V4RD(v4) => Some(IpAddr::from(v4.addr)), + BgpAddr::V6RD(v6) => Some(IpAddr::from(v6.addr)), _ => None, }; for net in bgp_addrs_to_nets(&updates.addrs) {