pipe.h 590 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
/*
 *	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_

12 13 14
#define PIPE_OPAQUE 0
#define PIPE_TRANSPARENT 1

15 16 17
struct pipe_config {
  struct proto_config c;
  struct rtable_config *peer;		/* Table we're connected to */
18
  int mode;				/* PIPE_OPAQUE or PIPE_TRANSPARENT */
19 20 21 22 23
};

struct pipe_proto {
  struct proto p;
  struct rtable *peer;
24
  int mode;				/* PIPE_OPAQUE or PIPE_TRANSPARENT */
25 26 27 28
  struct pipe_proto *phantom;
};

#endif