0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 12:48:43 +00:00

Merge branch 'int-new-channels' of gitlab.labs.nic.cz:labs/bird into int-new-channels

This commit is contained in:
Jan Moskyto Matejka 2016-04-07 09:58:31 +02:00
commit 0c8c8151fc
4 changed files with 10 additions and 4 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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;

View File

@ -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)