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_
|
|
|
|
|
2009-06-01 10:10:10 +00:00
|
|
|
#define PIPE_OPAQUE 0
|
|
|
|
#define PIPE_TRANSPARENT 1
|
|
|
|
|
1999-08-03 19:57:43 +00:00
|
|
|
struct pipe_config {
|
|
|
|
struct proto_config c;
|
|
|
|
struct rtable_config *peer; /* Table we're connected to */
|
2009-06-01 10:10:10 +00:00
|
|
|
int mode; /* PIPE_OPAQUE or PIPE_TRANSPARENT */
|
1999-08-03 19:57:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct pipe_proto {
|
|
|
|
struct proto p;
|
|
|
|
struct rtable *peer;
|
2009-06-01 10:10:10 +00:00
|
|
|
int mode; /* PIPE_OPAQUE or PIPE_TRANSPARENT */
|
1999-08-03 19:57:43 +00:00
|
|
|
struct pipe_proto *phantom;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|