Revision 64011f89 nest/protocol.h

View differences:

nest/protocol.h
20 20
struct proto_config;
21 21
struct config;
22 22
struct proto;
23
struct event;
23 24

  
24 25
/*
25 26
 *	Routing Protocol
......
75 76
  struct protocol *proto;		/* Protocol */
76 77
  struct proto_config *cf;		/* Configuration data */
77 78
  pool *pool;				/* Pool containing local objects */
79
  struct event *attn;			/* "Pay attention" event */
78 80

  
81
  char *name;				/* Name of this instance (== cf->name) */
79 82
  unsigned debug;			/* Debugging flags */
80 83
  unsigned preference;			/* Default route preference */
81 84
  unsigned disabled;			/* Manually disabled */
82 85
  unsigned proto_state;			/* Protocol state machine (see below) */
83 86
  unsigned core_state;			/* Core state machine (see below) */
87
  unsigned core_goal;			/* State we want to reach (see below) */
84 88

  
85 89
  void (*if_notify)(struct proto *, unsigned flags, struct iface *new, struct iface *old);
86 90
  void (*rt_notify)(struct proto *, struct network *net, struct rte *new, struct rte *old);
......
101 105
void *proto_new(struct proto_config *, unsigned size);
102 106
void *proto_config_new(struct protocol *, unsigned size);
103 107

  
104
extern list proto_list, inactive_proto_list;
108
extern list proto_list;
105 109

  
106 110
/*
107 111
 *  Each protocol instance runs two different state machines:

Also available in: Unified diff