1999-08-03 19:57:43 +00:00
|
|
|
/*
|
|
|
|
* 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 */
|
2022-06-22 10:45:42 +00:00
|
|
|
const net_addr *in_subprefix;
|
2020-05-01 20:26:24 +00:00
|
|
|
u8 max_generation;
|
1999-08-03 19:57:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct pipe_proto {
|
|
|
|
struct proto p;
|
2016-01-26 10:48:58 +00:00
|
|
|
struct channel *pri;
|
|
|
|
struct channel *sec;
|
2022-10-05 13:17:38 +00:00
|
|
|
uint pri_flags;
|
|
|
|
uint sec_flags;
|
2020-05-01 20:26:24 +00:00
|
|
|
struct tbf rl_gen;
|
1999-08-03 19:57:43 +00:00
|
|
|
};
|
|
|
|
|
2022-10-05 13:17:38 +00:00
|
|
|
#define PIPE_FL_RR_BEGIN_PENDING 1 /* Route refresh should start with the first route notified */
|
|
|
|
|
1999-08-03 19:57:43 +00:00
|
|
|
#endif
|
2023-11-02 13:33:00 +00:00
|
|
|
|
|
|
|
struct import_to_export_reload {
|
|
|
|
struct channel_import_request *cir; /* We can not free this struct before reload finishes. */
|
|
|
|
struct channel_feeding_request cfr; /* New request we actually need - import was changed to feed the other side. */
|
|
|
|
};
|