mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-11 17:08:46 +00:00
OSPF tx buffers should have the same size as rx buffers.
We should be able to send everything we received.
This commit is contained in:
parent
d5356072ac
commit
c4443085a1
@ -74,7 +74,7 @@ ospf_sk_open(struct ospf_iface *ifa)
|
|||||||
sk->err_hook = ospf_err_hook;
|
sk->err_hook = ospf_err_hook;
|
||||||
sk->iface = ifa->iface;
|
sk->iface = ifa->iface;
|
||||||
sk->rbsize = rxbufsize(ifa);
|
sk->rbsize = rxbufsize(ifa);
|
||||||
sk->tbsize = ifa->iface->mtu;
|
sk->tbsize = rxbufsize(ifa);
|
||||||
sk->data = (void *) ifa;
|
sk->data = (void *) ifa;
|
||||||
sk->flags = SKF_LADDR_RX;
|
sk->flags = SKF_LADDR_RX;
|
||||||
|
|
||||||
@ -709,7 +709,7 @@ ospf_iface_change_mtu(struct proto_ospf *po, struct ospf_iface *ifa)
|
|||||||
if (ifa->sk)
|
if (ifa->sk)
|
||||||
{
|
{
|
||||||
ifa->sk->rbsize = rxbufsize(ifa);
|
ifa->sk->rbsize = rxbufsize(ifa);
|
||||||
ifa->sk->tbsize = ifa->iface->mtu;
|
ifa->sk->tbsize = rxbufsize(ifa);
|
||||||
sk_reallocate(ifa->sk);
|
sk_reallocate(ifa->sk);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user