summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-05 17:02:52 +0200
committerOndrej Filip <feela@network.cz>2004-06-05 17:02:52 +0200
commit66004c91a89479abd3df89404afff62c5d60d4c3 (patch)
treea425a5b958d457db9416298d035211b9a884bdf1 /proto
parent9831e5916f6956377739f948869d377b091f5c92 (diff)
downloadbird-66004c91a89479abd3df89404afff62c5d60d4c3.tar
bird-66004c91a89479abd3df89404afff62c5d60d4c3.zip
Set size of the buffers. (Thanx MJ.)
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/iface.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/proto/ospf/iface.c b/proto/ospf/iface.c
index df73295..3088746 100644
--- a/proto/ospf/iface.c
+++ b/proto/ospf/iface.c
@@ -429,11 +429,23 @@ ospf_if_notify(struct proto *p, unsigned flags, struct iface *iface)
struct ospf_neighbor *n;
OSPF_TRACE(D_EVENTS, "Changing MTU on interface %s.", iface->name);
if (ifa->hello_sk)
+ {
+ ifa->hello_sk->rbsize = ifa->iface->mtu;
+ ifa->hello_sk->tbsize = ifa->iface->mtu;
sk_reallocate(ifa->hello_sk);
+ }
if (ifa->dr_sk)
+ {
+ ifa->dr_sk->rbsize = ifa->iface->mtu;
+ ifa->dr_sk->tbsize = ifa->iface->mtu;
sk_reallocate(ifa->dr_sk);
+ }
if (ifa->ip_sk)
+ {
+ ifa->ip_sk->rbsize = ifa->iface->mtu;
+ ifa->ip_sk->tbsize = ifa->iface->mtu;
sk_reallocate(ifa->ip_sk);
+ }
WALK_LIST(n,ifa->neigh_list)
{