diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2012-03-15 13:12:00 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2012-03-15 13:12:00 +0100 |
commit | 2f9955b5d508698b04ff41e5e38097acdac416b9 (patch) | |
tree | c170895d8ec597de28013e59318e4253b6a3a6f9 /proto/ospf | |
parent | 8796a8a56edbcd420de724a58947c7aedadf04de (diff) |
Fixes TTL for multicast OSPF packets.
Thanks Alexander V. Chernikov for the suggestion.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/iface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index cced7105..13d5efb6 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; |