From: Ondrej Zajicek Date: Thu, 15 Mar 2012 12:12:00 +0000 (+0100) Subject: Fixes TTL for multicast OSPF packets. X-Git-Tag: v1.3.7~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f9955b5d508698b04ff41e5e38097acdac416b9;p=thirdparty%2Fbird.git Fixes TTL for multicast OSPF packets. Thanks Alexander V. Chernikov for the suggestion. --- diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c index cced71057..13d5efb64 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;