0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-26 11:41:54 +00:00
bird/proto/pipe/pipe.h
Maria Matejka 9c9059fd17 Allowed optimized exporting of a subprefix tree
Added an option for export filter to allow for prefiltering based on the
prefix. Routes outside the given prefix are completely ignored. Config
is simple:

	export in <net> <filter>;
2022-06-24 15:49:08 +02:00

27 lines
501 B
C

/*
* BIRD -- Table-to-Table Routing Protocol a.k.a Pipe
*
* (c) 1999 Martin Mares <mj@ucw.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
#ifndef _BIRD_PIPE_H_
#define _BIRD_PIPE_H_
struct pipe_config {
struct proto_config c;
struct rtable_config *peer; /* Table we're connected to */
const net_addr *in_subprefix;
u8 max_generation;
};
struct pipe_proto {
struct proto p;
struct channel *pri;
struct channel *sec;
struct tbf rl_gen;
};
#endif