From 2f9955b5d508698b04ff41e5e38097acdac416b9 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Thu, 15 Mar 2012 13:12:00 +0100 Subject: [PATCH] Fixes TTL for multicast OSPF packets. Thanks Alexander V. Chernikov for the suggestion. --- proto/ospf/iface.c | 2 ++ 1 file changed, 2 insertions(+) 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;