Revision f4a60a9b proto/pipe/pipe.h

View differences:

proto/pipe/pipe.h
9 9
#ifndef _BIRD_PIPE_H_
10 10
#define _BIRD_PIPE_H_
11 11

  
12
#define PIPE_OPAQUE 0
13
#define PIPE_TRANSPARENT 1
14

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

  
21 17
struct pipe_proto {
22 18
  struct proto p;
23
  struct rtable *peer_table;
24
  struct announce_hook *peer_ahook;	/* Announce hook for direction peer->primary */
25
  struct proto_stats peer_stats;	/* Statistics for the direction peer->primary */
26
  int mode;				/* PIPE_OPAQUE or PIPE_TRANSPARENT */
19
  struct channel *pri;
20
  struct channel *sec;
27 21
};
28 22

  
29

  
30
extern struct protocol proto_pipe;
31

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

  
35 23
#endif

Also available in: Unified diff