diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2017-03-30 21:58:47 -0300 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2017-03-31 12:57:37 -0300 |
| commit | 52b530fc64355933d428e2b88591cbf926b85bc8 (patch) | |
| tree | 3aa1c68bb61da7fbd462b86aa0cada9ade2054c6 /ldpd/interface.c | |
| parent | 308252d06dfb76edf1477b96416c2e2aa9f90579 (diff) | |
ldpd: fix configuration of non-existing VPLS interfaces and pseudowires
If we don't know the ifindex, flags, etc of an interface at the time it's
configured, we should make sure that once this information is available
the appropriate structures are updated.
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'ldpd/interface.c')
| -rw-r--r-- | ldpd/interface.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ldpd/interface.c b/ldpd/interface.c index 17b3237b37..11bce12b09 100644 --- a/ldpd/interface.c +++ b/ldpd/interface.c @@ -49,17 +49,14 @@ iface_compare(struct iface *a, struct iface *b) } struct iface * -if_new(struct kif *kif) +if_new(const char *name) { struct iface *iface; if ((iface = calloc(1, sizeof(*iface))) == NULL) fatal("if_new: calloc"); - strlcpy(iface->name, kif->ifname, sizeof(iface->name)); - LIST_INIT(&iface->addr_list); - if (kif->ifindex) - if_update_info(iface, kif); + strlcpy(iface->name, name, sizeof(iface->name)); /* ipv4 */ iface->ipv4.af = AF_INET; |
