mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
Merge branch 'int-new-channels' of gitlab.labs.nic.cz:labs/bird into int-new-channels
This commit is contained in:
commit
0c8c8151fc
@ -504,7 +504,7 @@ order_shutdown(void)
|
||||
* error in the configuration.
|
||||
*/
|
||||
void
|
||||
cf_error(char *msg, ...)
|
||||
cf_error(const char *msg, ...)
|
||||
{
|
||||
char buf[1024];
|
||||
va_list args;
|
||||
|
@ -68,7 +68,7 @@ int config_commit(struct config *, int type, int timeout);
|
||||
int config_confirm(void);
|
||||
int config_undo(void);
|
||||
void config_init(void);
|
||||
void cf_error(char *msg, ...) NORET;
|
||||
void cf_error(const char *msg, ...) NORET;
|
||||
void config_add_obstacle(struct config *);
|
||||
void config_del_obstacle(struct config *);
|
||||
void order_shutdown(void);
|
||||
|
@ -39,6 +39,12 @@ static int graceful_restart_state;
|
||||
static u32 graceful_restart_locks;
|
||||
|
||||
static char *p_states[] = { "DOWN", "START", "UP", "STOP" };
|
||||
static char *cs_states[] = {
|
||||
[CS_DOWN] = "DOWN",
|
||||
[CS_START] = "START",
|
||||
[CS_UP] = "UP",
|
||||
[CS_FLUSHING] = "FLUSHING"
|
||||
};
|
||||
|
||||
extern struct protocol proto_unix_iface;
|
||||
|
||||
@ -313,7 +319,7 @@ channel_set_state(struct channel *c, uint state)
|
||||
uint cs = c->channel_state;
|
||||
uint es = c->export_state;
|
||||
|
||||
DBG("%s reporting state transition %s/%s -> */%s\n", p->name, c_states[cs], p_states[ops], p_states[ps]);
|
||||
DBG("%s reporting channel %s state transition %s -> %s\n", c->proto->name, c->name, cs_states[cs], cs_states[state]);
|
||||
if (state == cs)
|
||||
return;
|
||||
|
||||
|
@ -34,7 +34,7 @@ dev_ifa_notify(struct proto *P, uint flags, struct ifa *ad)
|
||||
|
||||
if (!EMPTY_LIST(cf->iface_list) &&
|
||||
!iface_patt_find(&cf->iface_list, ad->iface, ad->iface->addr))
|
||||
/* Empty list is automagically treated as "*" */
|
||||
/* Empty list is automatically treated as "*" */
|
||||
return;
|
||||
|
||||
if (ad->flags & IA_SECONDARY)
|
||||
|
Loading…
Reference in New Issue
Block a user