File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / bird / proto / pipe / pipe.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Tue Aug 22 12:33:54 2017 UTC (7 years, 2 months ago) by misho
Branches: bird, MAIN
CVS tags: v1_6_8p3, v1_6_3p0, v1_6_3, HEAD
bird 1.6.3

/*
 *	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_

#define PIPE_OPAQUE 0
#define PIPE_TRANSPARENT 1

struct pipe_config {
  struct proto_config c;
  struct rtable_config *peer;		/* Table we're connected to */
  int mode;				/* PIPE_OPAQUE or PIPE_TRANSPARENT */
};

struct pipe_proto {
  struct proto p;
  struct rtable *peer_table;
  struct announce_hook *peer_ahook;	/* Announce hook for direction peer->primary */
  struct proto_stats peer_stats;	/* Statistics for the direction peer->primary */
  int mode;				/* PIPE_OPAQUE or PIPE_TRANSPARENT */
};


extern struct protocol proto_pipe;

static inline int proto_is_pipe(struct proto *p)
{ return p->proto == &proto_pipe; }

#endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>