diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2023-04-19 13:40:13 +0200 | 
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2023-09-18 14:57:03 +0200 | 
| commit | 39a8d354c11f6f063fa5154f5807e7a0c9b04b46 (patch) | |
| tree | 274eb91b310d78b045f9b00f0dca42a797e30764 /bgpd/bgp_table.c | |
| parent | c8172af6825ad4b10e68b33b8edc22e6e2dc1524 (diff) | |
bgpd: store bgp link-state prefixes
Add the ability to store link-state prefixes in the BGP table.
Store a raw copy of the BGP link state NLRI TLVs as received in the
packet in 'p.u.prefix_linkstate.ptr'.
Signed-off-by: Olivier Dugeon <olivier.dugeon@orange.com>
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'bgpd/bgp_table.c')
| -rw-r--r-- | bgpd/bgp_table.c | 3 | 
1 files changed, 3 insertions, 0 deletions
diff --git a/bgpd/bgp_table.c b/bgpd/bgp_table.c index 8465ada996..b9265dd81b 100644 --- a/bgpd/bgp_table.c +++ b/bgpd/bgp_table.c @@ -117,6 +117,9 @@ static void bgp_node_destroy(route_table_delegate_t *delegate,  		node->info = NULL;  	} +	if (family2afi(node->p.family) == AFI_LINKSTATE) +		prefix_linkstate_ptr_free(&node->p); +  	XFREE(MTYPE_ROUTE_NODE, node);  }  | 
