version 1.1, 2017/08/22 12:33:54
|
version 1.1.1.2, 2021/03/17 19:50:23
|
Line 1488 babel_add_iface(struct babel_proto *p, struct iface *n
|
Line 1488 babel_add_iface(struct babel_proto *p, struct iface *n
|
ifa->cf = ic; |
ifa->cf = ic; |
ifa->pool = pool; |
ifa->pool = pool; |
ifa->ifname = new->name; |
ifa->ifname = new->name; |
|
ifa->addr = new->llv6->ip; |
|
|
add_tail(&p->interfaces, NODE ifa); |
add_tail(&p->interfaces, NODE ifa); |
|
|
struct ifa *addr; |
|
WALK_LIST(addr, new->addrs) |
|
if (ipa_is_link_local(addr->ip)) |
|
ifa->addr = addr->ip; |
|
|
|
if (ipa_zero(ifa->addr)) |
|
log(L_WARN "%s: Cannot find link-local addr on %s", p->p.name, new->name); |
|
|
|
init_list(&ifa->neigh_list); |
init_list(&ifa->neigh_list); |
ifa->hello_seqno = 1; |
ifa->hello_seqno = 1; |
|
|
Line 1549 babel_if_notify(struct proto *P, unsigned flags, struc
|
Line 1542 babel_if_notify(struct proto *P, unsigned flags, struc
|
|
|
/* we only speak multicast */ |
/* we only speak multicast */ |
if (!(iface->flags & IF_MULTICAST)) |
if (!(iface->flags & IF_MULTICAST)) |
|
return; |
|
|
|
/* Ignore ifaces without link-local address */ |
|
if (!iface->llv6) |
return; |
return; |
|
|
if (ic) |
if (ic) |