mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-14 23:28:43 +00:00
e9d9dc7561
User can specify list of route attributes in the configuration file and run route aggregation on the export side of the pipe protocol. Routes are sorted and for every group of equivalent routes new route is created and exported to the routing table. It is also possible to specify filter which will run for every route before aggregation. Furthermore, it will be possible to set attributes of new routes according to attributes of the aggregated routes. This is a work in progress.
36 lines
719 B
C
36 lines
719 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 merging_import {
|
|
uint limit;
|
|
uint use_aggregator;
|
|
};
|
|
|
|
struct merging_export {
|
|
uint limit;
|
|
uint use_aggregator;
|
|
};
|
|
|
|
struct pipe_config {
|
|
struct proto_config c;
|
|
struct rtable_config *peer; /* Table we're connected to */
|
|
struct merging_import config_import; /* From peer table to primary table */
|
|
struct merging_export config_export; /* From primary table to peer table */
|
|
};
|
|
|
|
struct pipe_proto {
|
|
struct proto p;
|
|
struct channel *pri;
|
|
struct channel *sec;
|
|
};
|
|
|
|
#endif
|