mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-12 22:28:44 +00:00
Fixes TTL for multicast OSPF packets.
Thanks Alexander V. Chernikov for the suggestion.
This commit is contained in:
parent
8796a8a56e
commit
2f9955b5d5
@ -120,6 +120,8 @@ ospf_sk_open(struct ospf_iface *ifa)
|
|||||||
sk->saddr = ifa->addr->ip;
|
sk->saddr = ifa->addr->ip;
|
||||||
if ((ifa->type == OSPF_IT_BCAST) || (ifa->type == OSPF_IT_PTP))
|
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)
|
if (sk_setup_multicast(sk) < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user