summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-11-04 17:25:48 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2010-11-04 17:25:48 +0100
commitc4443085a198c26a478463429477e7e8a599fa07 (patch)
treebfadb085a68c868aa6eb4de81f080ddc53a06184 /proto
parentd5356072ac18d5b0eb12f14afca6bfbea702dda2 (diff)
downloadbird-c4443085a198c26a478463429477e7e8a599fa07.tar
bird-c4443085a198c26a478463429477e7e8a599fa07.zip
OSPF tx buffers should have the same size as rx buffers.
We should be able to send everything we received.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index cc40527..b31e409 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -74,7 +74,7 @@ ospf_sk_open(struct ospf_iface *ifa)
sk->err_hook = ospf_err_hook;
sk->iface = ifa->iface;
sk->rbsize = rxbufsize(ifa);
- sk->tbsize = ifa->iface->mtu;
+ sk->tbsize = rxbufsize(ifa);
sk->data = (void *) ifa;
sk->flags = SKF_LADDR_RX;
@@ -709,7 +709,7 @@ ospf_iface_change_mtu(struct proto_ospf *po, struct ospf_iface *ifa)
if (ifa->sk)
{
ifa->sk->rbsize = rxbufsize(ifa);
- ifa->sk->tbsize = ifa->iface->mtu;
+ ifa->sk->tbsize = rxbufsize(ifa);
sk_reallocate(ifa->sk);
}