summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfe.c
AgeCommit message (Collapse)Author
2010-05-26Rename some imsg bits to make namespace collisions less likely buf toNicholas Marriott
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
2010-02-16Pick up RTM_DELADDR and issue an internal IFADDRDEL message to the ospfe toClaudio Jeker
inform about the interface address change. If this is an active interface it will be downed. A ospfctl reload is needed to fetch the new/changed IP if one got set. OK dlg@, sthen@
2009-09-30Announce a stub network LSA for backup carp interfaces. This should helpClaudio Jeker
when fail-over happens, since removing the better route will not result in a blackhole until the update from the new master is processed. Tested, OK and input sthen@, phessler@
2009-09-300xffff -> MAX_METRIC. Idea by sthen@, I like it :)Claudio Jeker
2009-09-19KNF indentation; no binary changeStuart Henderson
2009-08-09Scale both receive and send buffer on the raw socket. The default 8192Claudio Jeker
bytes is not enough for larger networks causing send errors because of too big packets. OK henning
2009-06-06sync ospfctl/ospfd with the common imsg code, making it lib ready as well.Eric Faurot
"looks ok" claudio@
2009-06-05make ospfd's imsg lib ready as well.Pierre-Yves Ritschard
ok claudio@
2009-05-31Remove redundant imsg_event_add calls; ok claudio@Jacek Masiulaniec
2009-05-31The libevent callback function may be called with EV_READ and EV_WRITEClaudio Jeker
set at the same time so using a switch to do read or write is a bad idea. Problem noticed by Eygene Ryabinkin on FreeBSD for some reasons it is not triggered on OpenBSD. Fix aggreed by a most other libevent hackers
2009-04-26comment typos; no binary changeStuart Henderson
2009-04-07allow to specify an alternate control socket instead of /var/run/ospfd.sock.Reyk Floeter
this is required to run multiple instances of ospfd. ok claudio@
2009-03-04Introduce and use buf_size(buf) instead of buf->wpos -- at least in the nonClaudio Jeker
buf/imsg specific code. buf_close() will no force a truncation of the buffer to the wpos but actually add code in imsg.c to detect and report such silly behaviour. Makes the buf API a bit more sane.
2009-01-07Full stub area support. This allows ABRs to announce a default networkClaudio Jeker
summary LSA into stub areas so that these routers are able to reach the outside of the area. OK norby@
2008-11-24Initial support for stub areas. The bit still missing is the redistributionClaudio Jeker
of the default summary net lsa on ABRs but that is comming. OK norby@
2007-10-13Funny typo, it is fib not fip so adjust function name.Claudio Jeker
2007-10-11Bye bye global ospf options. OSPF options are per area (at least the oneClaudio Jeker
flag that we set). So introduce a area_ospf_options() function that will return the correct flags for each area. This makes stub area support a lot easier. OK norby@
2007-10-01fix alot of whitespace problems...Esben Norby
2007-07-25Don't fatal if the imsg pipe is closed, this is often triggered in the parentClaudio Jeker
and hides the real cause of the termination. OK norby@, reyk@, pyr@
2007-06-19Allow ospfd reconfiguration through SIGHUP, add SIGHUP handlers inPierre-Yves Ritschard
children like in bgpd so that ``pkill -1 ospfd'' works as expected. ok claudio@
2007-05-29Demote support for ospfd. It is possible to specify a demote group onClaudio Jeker
interfaces and areas. With this carp setups using ospfd are more reliable because we can fail over if the OSPF connectivity is (partially) lost. OK norby@
2007-03-21Add support for RFC 3137: OSPF Stub Router AdvertisementClaudio Jeker
This allows ospfd to announce networks without the need to transit traffic. stub router is enabled if the fib is not coupled, net.inet.ip.forwarding is not 1 or if the stub router global config option is set to yes. OK norby@
2007-02-26Set the metric for loopback interfaces.Esben Norby
Fix by Dustin Lundquist - thank you very much. ok henning@
2007-02-01Preliminary configuration reload support. Seems to work reasonably wellClaudio Jeker
after fixing many use-after-free errors a couple of days ago. Most cases -- adding/removing of interfaces, adding/removing of areas -- seem to work. Still merge_config() is a behemoth of a function and some edge cases may not be covered correctly (yet). OK norby@ pyr@
2007-01-11Silently ignore unknown neighbors in the rde and ospfe imsg handler. ThisClaudio Jeker
is needed for upcomming reload support -- it can happen that a message to a just deleted neighbor is still pending.
2006-11-28add additional link states to report the half duplex / full duplexReyk Floeter
state, if known by the driver. this is required to check the full duplex state without depending on the ifmedia ioctl which can't be called in the kernel without process context. ok henning@, brad@
2006-11-17Support for multiple networks on one interface. Until now only the mainClaudio Jeker
address of a interface could be used. Now it is possible to specify a interface more than once if multiple networks are configured. An alternative network can be specified via e.g. interface em0:10.0.5.1. The old interface syntax without the IP still works and uses the main/first configured IP address. ospfd now needs to include the IP header on outgoing messages as it is not possible to specifiy the source address in sendto(2). Additionally all multicast joins and leaves have to be tracked. OK norby@
2006-09-27Use IP_RECVIF to get the incomming interface of OSPF packets. Now we useClaudio Jeker
the source address and the interface index to find the corresponding struct interface which is less error prone. OK norby@
2006-06-02remove unused variable, found by lint.Esben Norby
2006-05-30Uups, this file should be commited with the redistribute rtlabel stuff.Claudio Jeker
2006-04-25More lint cleanup. Kill unneeded stuff and sprinkle some ARGSUSED.Claudio Jeker
2006-04-16KNFHenning Brauer
2006-03-09Log link state changes.Esben Norby
ok claudio@
2006-03-08Remove unused quit flag inherited from bgpd long ago.Claudio Jeker
2006-03-08Check for implied acks. If we receive an update that is on our retransmissionClaudio Jeker
queue for the neighbor there is no need to send back an ack.
2006-02-21Better English in comments.Claudio Jeker
2006-02-19Do not allocate a new chunk of memory every time we receive a packet.Esben Norby
This should have been fixed ages ago since it really improves the performance of ospfd. ok claudio@
2006-02-10ospfd does not need fd passing via the imsg framework so remove that codeClaudio Jeker
and remove other unneeded functions that are only used in bgpd.
2006-01-05Make ospfd respect carp(4) interfaces and their weird behaviour. They willClaudio Jeker
not be used to connect to a OSPF cloud and forced to be passive. With this ospfd will only announce the carp interface route if the interface is master. So you can connect a LAN in a redundant way to your ospf backbone. OK norby@
2005-12-29Instead of a simple timer per neighbor for the LS retransmition list useClaudio Jeker
a timewheel. All LSA updates are now first added to the queue and sent out later. This makes it possible to cluster multiple LSA updates into on OSPF packet. This gives a massive speedup when large databases need to be synced. Tested and OK norby@
2005-12-15Fix ospfe shutdown function. The cleanup was totaly busted. OK norby@Claudio Jeker
2005-12-04Increase the receive buffer of the raw socket.Esben Norby
Prevents some of the retransmitting during bulk ls update transfers. ok claudio@
2005-10-19fix some spellings in comments.Claudio Jeker
2005-10-18Cleanup interface code a minimal bit. There is no need for if_shutdown(),Claudio Jeker
especially it got called in the wrong place. OK norby@
2005-06-13Passive interfaces belong to the area and should be announced as stubClaudio Jeker
networks. Bug report and testing by Stephen Marley. While there kill an unneeded log_debug(). OK norby@
2005-05-27Set the V-bit when originating virtual links in router LSAs.Esben Norby
ok claudio@
2005-05-27Virtual link support, originate virtual links in router LSAs.Esben Norby
jajaja claudio@
2005-05-27Fix a access after free on shutdown. OK norby@Claudio Jeker
2005-05-27Initial virtual link support.Esben Norby
ok claudio@
2005-05-26More usable debug output when originating router lsas.Esben Norby