Revision ae80a2de proto/bgp/bgp.h
proto/bgp/bgp.h | ||
---|---|---|
90 | 90 |
struct bgp_conn { |
91 | 91 |
struct bgp_proto *bgp; |
92 | 92 |
struct birdsock *sk; |
93 |
unsigned int state; /* State of connection state machine */
|
|
93 |
uint state; /* State of connection state machine */
|
|
94 | 94 |
struct timer *connect_retry_timer; |
95 | 95 |
struct timer *hold_timer; |
96 | 96 |
struct timer *keepalive_timer; |
... | ... | |
142 | 142 |
struct timer *startup_timer; /* Timer used to delay protocol startup due to previous errors (startup_delay) */ |
143 | 143 |
struct timer *gr_timer; /* Timer waiting for reestablishment after graceful restart */ |
144 | 144 |
struct bgp_bucket **bucket_hash; /* Hash table of attribute buckets */ |
145 |
unsigned int hash_size, hash_count, hash_limit;
|
|
145 |
uint hash_size, hash_count, hash_limit; |
|
146 | 146 |
HASH(struct bgp_prefix) prefix_hash; /* Prefixes to be sent */ |
147 | 147 |
slab *prefix_slab; /* Slab holding prefix nodes */ |
148 | 148 |
list bucket_queue; /* Queue of buckets to send */ |
... | ... | |
235 | 235 |
|
236 | 236 |
void bgp_attach_attr(struct ea_list **to, struct linpool *pool, unsigned attr, uintptr_t val); |
237 | 237 |
byte *bgp_attach_attr_wa(struct ea_list **to, struct linpool *pool, unsigned attr, unsigned len); |
238 |
struct rta *bgp_decode_attrs(struct bgp_conn *conn, byte *a, unsigned int len, struct linpool *pool, int mandatory);
|
|
238 |
struct rta *bgp_decode_attrs(struct bgp_conn *conn, byte *a, uint len, struct linpool *pool, int mandatory); |
|
239 | 239 |
int bgp_get_attr(struct eattr *e, byte *buf, int buflen); |
240 | 240 |
int bgp_rte_better(struct rte *, struct rte *); |
241 | 241 |
int bgp_rte_recalculate(rtable *table, net *net, rte *new, rte *old, rte *old_best); |
... | ... | |
245 | 245 |
void bgp_free_bucket(struct bgp_proto *p, struct bgp_bucket *buck); |
246 | 246 |
void bgp_init_prefix_table(struct bgp_proto *p, u32 order); |
247 | 247 |
void bgp_free_prefix(struct bgp_proto *p, struct bgp_prefix *bp); |
248 |
unsigned int bgp_encode_attrs(struct bgp_proto *p, byte *w, ea_list *attrs, int remains);
|
|
248 |
uint bgp_encode_attrs(struct bgp_proto *p, byte *w, ea_list *attrs, int remains); |
|
249 | 249 |
void bgp_get_route_info(struct rte *, byte *buf, struct ea_list *attrs); |
250 | 250 |
|
251 | 251 |
inline static void bgp_attach_attr_ip(struct ea_list **to, struct linpool *pool, unsigned attr, ip_addr a) |
Also available in: Unified diff