config: count the interfaces as they are added.
This information is useful to the various clock types. Signed-off-by: Richard Cochran <richardcochran@gmail.com>master
parent
8f7fb11fbc
commit
63e530e297
2
config.c
2
config.c
|
@ -607,6 +607,8 @@ struct interface *config_create_interface(char *name, struct config *cfg)
|
|||
strncpy(iface->name, name, MAX_IFNAME_SIZE);
|
||||
sk_get_ts_info(iface->name, &iface->ts_info);
|
||||
STAILQ_INSERT_TAIL(&cfg->interfaces, iface, list);
|
||||
cfg->n_interfaces++;
|
||||
|
||||
return iface;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue