From 7a169e46a8f1a30cf98eae1cd9c7627c70e8f74c Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Wed, 29 May 2024 09:33:42 +0200 Subject: [PATCH] BGP: export table stores routes, reloads and shows in CLI. In future, this and rtable's data structures should be probably merged but it isn't a good idea to do now. The used data structure is similar to rtable -- an array of pointers to linked lists. Feed is lockless, as with all tables. Full export (receiving updates) is not supported yet but we don't have any method how to use it anyway. Gonna implement it later. --- doc/bird.sgml | 7 + lib/route.h | 6 + nest/config.Y | 7 +- nest/route.h | 6 +- nest/rt-export.c | 21 +++ nest/rt-show.c | 25 ++-- nest/rt-table.c | 21 --- proto/bgp/attrs.c | 334 +++++++++++++++++++++----------------------- proto/bgp/bgp.c | 28 +++- proto/bgp/bgp.h | 9 +- proto/bgp/config.Y | 2 + proto/bgp/packets.c | 6 +- 12 files changed, 256 insertions(+), 216 deletions(-) diff --git a/doc/bird.sgml b/doc/bird.sgml index 763ddfa3..4e0e510f 100644 --- a/doc/bird.sgml +++ b/doc/bird.sgml @@ -3445,6 +3445,13 @@ be used in explicit configuration.