]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fixes TTL for multicast OSPF packets.
authorOndrej Zajicek <santiago@crfreenet.org>
Thu, 15 Mar 2012 12:12:00 +0000 (13:12 +0100)
committerOndrej Zajicek <santiago@crfreenet.org>
Thu, 15 Mar 2012 12:12:00 +0000 (13:12 +0100)
Thanks Alexander V. Chernikov for the suggestion.

proto/ospf/iface.c

index cced710573e2380c4ee7c897601f79c4f0c7610f..13d5efb648fc65e8fb699b4cbe5d34a60bd7b39a 100644 (file)
@@ -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;