diff options
author | Ondrej Filip <feela@network.cz> | 2005-03-15 23:06:36 +0100 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2005-03-15 23:06:36 +0100 |
commit | 94c42054ea65d10477afc76f221e3ac345a431eb (patch) | |
tree | eace02441c60398eea70ca09541abe4f9b24ff70 /proto/ospf/ospf.c | |
parent | e6ea2e375e4c547ca1b6fc9c313c2b7940acbd77 (diff) | |
download | bird-94c42054ea65d10477afc76f221e3ac345a431eb.tar bird-94c42054ea65d10477afc76f221e3ac345a431eb.zip |
Added new parametr 'rx buffer <num>'. BIRD is able to receive
very large packets (if configured).
Diffstat (limited to 'proto/ospf/ospf.c')
-rw-r--r-- | proto/ospf/ospf.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index f66dbad..b382df0 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -637,7 +637,7 @@ ospf_reconfigure(struct proto *p, struct proto_config *c) { /* Now reconfigure interface */ if (!(newip = (struct ospf_iface_patt *) - iface_patt_match(&oldac->patt_list, ifa->iface))) + iface_patt_match(&newac->patt_list, ifa->iface))) return 0; /* HELLO TIMER */ @@ -672,6 +672,16 @@ ospf_reconfigure(struct proto *p, struct proto_config *c) schedule_rt_lsa(ifa->oa); } + /* RX BUFF */ + if (oldip->rxbuf != newip->rxbuf) + { + ifa->rxbuf = newip->rxbuf; + OSPF_TRACE(D_EVENTS, + "Changing rxbuf interface %s from %d to %d", + ifa->iface->name, oldip->rxbuf, newip->rxbuf); + ospf_iface_change_mtu(po, ifa); + } + /* strict nbma */ if ((oldip->strictnbma == 0) && (newip->strictnbma != 0)) { |