summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
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-05-15Do not ignore the route metric for "redistribute default".Marco Pfatschbacher
Got broken in -r 1.62. Pointed out by bluhm@ OK bluhm@, claudio@
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-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2009-03-29Key-Id 0 is not only not available on Cisco devices but also on other devices.Claudio Jeker
Make this a more general concern about using 0 as key id. After discussion with Tamas TEVESZ
2009-03-27Allow the announcement of default route also via redistribute 0.0.0.0/0Michele Marchetto
and route labels. ok claudio@
2009-03-24Change the behaviour of redistribute default.Michele Marchetto
Now a default route have to be present in the fib to be correctly advertised. Spotted and tested by Steven Surdok on ripd. ok claudio@
2009-03-13When commiting the buf_left() change adding len to the check was dropped andClaudio Jeker
so a warning later on could be hit in some cases. Found by dlg@ OK dlg@
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-03-01Print the correct function name in log_debug().Michele Marchetto
OK claudio@ stsp@
2009-02-25Fix an invalid pointer dereference in control_close(). If control_connbyfd()Claudio Jeker
fails -- which should never happen -- the function does not return and is accession the NULL set control pointer later on. Found by Matthew Haub. OK deraadt@
2009-01-31write point-to-point in a consistent way.Igor Sobrado
jmc@ has provided a complete list of manual pages to be fixed, and suggested using uppercase (i.e., Point-to-Point) when discussing the protocol, and lowercase (point-to-point) otherwise. ok jmc@
2009-01-31Implement buf_left() to make some some more buffer handling easier.Claudio Jeker
buf_left() returns the bytes left in a buffer. This makes the check to keep MD5_DIGEST_LENGTH bytes unallocated in some messages easier. From the buf cleanup diff that was OK norby@ and henning@
2009-01-31Pass the buffer to send_packet() instead of spliting it up. This removesClaudio Jeker
some direct access to struct buf internals in the rest of ospfe. Based on a larger buffer cleanup diff that was OK norby@ henning@
2009-01-27No need to check if neighbor exists before adding itMichele Marchetto
as it is already done in rde_nbr_new(). ok claudio@ stsp@
2009-01-26We acutally use the lowest IP configured as router-id if none is specified.Claudio Jeker
2009-01-26First convert IP addresses to host-byte-order before checking which one isClaudio Jeker
smaller. Additionally fix the check to find the lowest configured IP as suggested by the RFC. Found with stsp@
2009-01-16fix last updateJoerg Goltermann
OK claudio@ henning@
2009-01-08Fix use after free of kr. Happend when the first loop removed the headClaudio Jeker
element without updating the kr pointer which was later on used again. Found by david@. OK norby@
2009-01-08Include the neighbor ID in a debug output so that it is clear which routerClaudio Jeker
is sendingf the duplicate entries. OK norby@
2009-01-08tweak previous; feedback/ok claudioJason McIntyre
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@
2009-01-06Remove workaround added in rev 1.63. The real issue has been found andClaudio Jeker
fixed and the bandaid is no longer needed. See rev. 1.26 of sys/net/radix.c
2009-01-01Remove some other useless debug messages that just add unneeded noise.Claudio Jeker
2009-01-01Call kr_shutdown() before exit even in config test mode and config parseClaudio Jeker
error case.
2009-01-01Move initialisation of krt into kif_init so that it is possible to callClaudio Jeker
kr_shutdown() after kif_init().
2008-12-17Add a workaround for some crazyness that happens if a cloning route has aClaudio Jeker
low priority gateway route below itself plus a carp interface on the same network. The result is that some arp entries can't be added. This is a bandaid that will give me time to figure out the real bug.
2008-12-12Make the kroute code routing priority aware. This solves a few issues andClaudio Jeker
makes to code simpler. While the routing table is somewhat simpler the redistribution code does not allow a much more radical approach. With some additional help of Mr. Kernel and his rtsock it should be possible to rip even more code out of kroute.c. Tested and OK sthen@, gollo@
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@
2008-11-21Kill some old debug messages that are no longer needed.Claudio Jeker
2008-11-21imsg_* returns ssize_tClaudio Jeker
2008-10-17bring in the findeol() fix from pfctl. list of affected parsers by sthenHenning Brauer
2008-10-03Unify code between the various flavors of imsg buffer.c.Eric Faurot
Use unsigned int for msg_iovlen. ok henning@ claudio@
2008-09-29Refactor code that handles the kroute interfaces and make it possible toClaudio Jeker
learn new interfaces during runtime. This should solve the issue with reloads failing when interfaces where created during runtime. OK norby@
2008-09-12Don't be to strict in find_iface() about what we accept on point-to-pointClaudio Jeker
links. If a packet arrived on a point-to-point interface we should accept it even if the source address of the packet is different to our iface destination address. OK norby@
2008-07-24Use memcpy() and memcmp() like everywhere else in ospfd. OK norby@Claudio Jeker
2008-06-13Simplify ROUNDUP() macro, it does not need the additional size argument.Claudio Jeker
That will be sizeof(long) no matter what.
2008-06-10Fix typo.Joel Sing
2008-05-12Error out with usage line if additional arguments are given after thePierre-Yves Ritschard
option parsing. Found out the hard way by jdixon on ifstated. ok sobrado@, jdixon@, millert@
2008-05-09insert/delete routes w/ prio RTP_OSPFHenning Brauer
2008-05-07OSPF uses the highest IP address, not the lowest.Joel Sing
hai norby@
2008-05-05Use rtm_hdrlen instead of the static header length. OK norby@Claudio Jeker
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-15Repair more msg_controllen dealing with structures or arrays ofTheo de Raadt
descriptors; ok hshoexer, also looked at by kettenis and henning
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-02-26Have popfile() also close the main config file,Marco Pfatschbacher
but only do the final popfile call after yyparse() is done. This also fixes config reload on SIGHUP for some daemons. Spotted by otto@. OK deraadt@
2008-02-22remove comma from type list, add missing semicolon for consistencySimon Bertrang
OK claudio@
2008-02-11Correct the output of several error and debug messages.Esben Norby