From 94c42054ea65d10477afc76f221e3ac345a431eb Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 15 Mar 2005 22:06:36 +0000 Subject: Added new parametr 'rx buffer '. BIRD is able to receive very large packets (if configured). --- proto/ospf/ospf.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'proto/ospf/ospf.c') 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)) { -- cgit v1.2.3