diff options
Diffstat (limited to 'proto/ospf/iface.c')
-rw-r--r-- | proto/ospf/iface.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index cced7105..405e49df 100644 --- a/proto/ospf/iface.c +++ b/proto/ospf/iface.c @@ -120,6 +120,8 @@ ospf_sk_open(struct ospf_iface *ifa) sk->saddr = ifa->addr->ip; if ((ifa->type == OSPF_IT_BCAST) || (ifa->type == OSPF_IT_PTP)) { + sk->ttl = 1; /* Hack, this will affect just multicast packets */ + if (sk_setup_multicast(sk) < 0) goto err; @@ -568,6 +570,9 @@ ospf_iface_new(struct ospf_area *oa, struct ifa *addr, struct ospf_iface_patt *i { ifa->voa = ospf_find_area(oa->po, ip->voa); ifa->vid = ip->vid; + + ifa->hello_timer = tm_new_set(ifa->pool, hello_timer_hook, ifa, 0, ifa->helloint); + return; /* Don't lock, don't add sockets */ } |