summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
AgeCommit message (Collapse)Author
2014-07-12Close connections when msgbuf_write() returns 0.Kenneth R Westerback
ok claudio@
2014-07-11Close the control fd when it has reported EOF.Kenneth R Westerback
ok henning@
2014-06-23The second level of the CTL_NET sysctl is a PF_*, not an AF_*Philip Guenther
inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
2014-03-24Passing MSG_DONTROUTE to sendto() here has no effect since SO_DONTROUTEMartin Pieuchot
is only implemented for IPv4. Just remove it. Tested by and ok florian@
2014-01-22relax the cfg file secrecy check slightly to allow group readabilityHenning Brauer
default permissions and mtree NOT changed. prodded by benno, ok phessler benno jmatthew theo pelikan florian
2013-11-25use u_char for buffers in yylex, for ctype callsSebastian Benoit
found by millert@, ok deraadt@
2013-11-13handle msgbuf_write() returning EAGAIN,Sebastian Benoit
taken from claudios previous fix to ospfd. "do it" deraadt@
2013-11-01another annoying %iTheo de Raadt
2013-10-30another simple %i to %d conversion for obviousnessTheo de Raadt
2013-10-18typo in function name in log messageStuart Henderson
2013-08-14no longer any need to quote macro lines with >9 args;Jason McIntyre
From: Jan Stary
2013-05-09Simplify code, no binary change.Claudio Jeker
2013-03-25sync w/ospfd: improve snapshot handling; ok claudio, sthenMarkus Friedl
2013-03-25sync w/ospfd: ignore the nbr_adj_timer if we are not formingMarkus Friedl
adjacencies; ok claudio sthen
2013-03-25sync w/ospfd: the event NBR_EVT_SEQ_NUM_MIS is not defined in stateMarkus Friedl
NBR_STA_XSTRT; ok claudio@ sthen@
2013-03-25sync w/ ospfd:Markus Friedl
for point-to-point interfaces we need to send lsupdates to the interface address, since there is no DR and multicast messages to the DR will be ignored. ok claudio@, then@
2013-03-25sync w/ospfd: allow two minutes until neighbor adjacencies are formed;Markus Friedl
ok claudio@ sthen@
2013-03-22tweak previous; ok sthenJason McIntyre
2013-03-22port from ospfd/lsreq.c r1.20, ok claudio@Stuart Henderson
date: 2013/01/17 09:02:22; author: markus; state: Exp; lines: +4 -2 the peer might still send more DD messages, even if the RDE has processed all received DDs (dd_pending == 0), so we need to check for state != NBR_STA_XCHNG; ok claudio@
2013-03-22Allow use of an alternative control socket, ported from ospfd. ok claudio@Stuart Henderson
2013-03-22sync comment typos/whitespace with ospfdStuart Henderson
2013-03-22typo in commentStuart Henderson
2013-03-22gratuitous whitespace diff with ospfd/ospf.hStuart Henderson
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2013-03-06sync yyerror() with version in bgpd so that it logs to syslog when daemonized.Stuart Henderson
ok florian@
2013-01-14kroute.c rev 1.69 of ospfd for ospf6dFlorian Obser
------------------------------------------------------------------------ date: 2009/06/02 20:16:59; author: claudio; state: Exp; lines: +13 -3 Track reject and blackhole routes and allow them to be redistributed even though they point to the loopback. Mainly used for redistribute default since on default free routers we need to have a fake route now. After discussion with Tonnerre Lombard, idea OK henning@ ------------------------------------------------------------------------ ok claudio@
2012-10-22Unfortunately "ospf6ctl show fib" printed embedded scopes as theAlexander Bluhm
destination addresses still contain them. To fix that, call recoverscope() in log_in6addr(). Also log_in6addr_scope() should not fiddle with the scope itself, put that into a generic function addscope(). OK claudio@
2012-10-21Move common ospf6d functions for ipv6 address manipulation intoAlexander Bluhm
util.c to reuse them in ospf6ctl. OK claudio@
2012-09-26last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-09-20The current code in ospf6d kroute tries to read the scope of theAlexander Bluhm
route from the gateway's scope id. That does not work as the kernel provides the scope id via the kame hack instead of the sin6_scope_id field of the sockaddr_in6. Call recoverscope() to fix that. OK claudio@
2012-09-20Bring back log_in6addr_scope() as ospf6ctl uses it.Alexander Bluhm
Found by kettenis@ the hard way.
2012-09-19Instead of fiddling about the kame hack here and there, implementAlexander Bluhm
the functions embedscope(), recoverscope(), clearscope(). ok claudio@
2012-09-19Do not care about the kame hack when logging a link local address.Alexander Bluhm
The scope should have been converted when we received it from kernel. Remove log_in6addr_scope(), it is not used. ok claudio@
2012-09-18The if (!better && !equal) check is redundant as the same conditionAlexander Bluhm
is checked a few lines below again. Fewer checks make the code more readable. ok stsp@
2012-09-17Fix trailing whitespaces.Alexander Bluhm
2012-06-12The router-dead-time is only a 16-bit value in ospf v3.Claudio Jeker
Found by robert at peichaer.org. OK henning@ jmc@
2012-04-24take a stab at documenting when arguments need quoted, and valid macroJason McIntyre
characters; prompted by a diff from robert peichaer org thanks gilles and henning for feedback ok deraadt zinke
2012-04-11delete excessive evtimer_pending; ok claudioTheo de Raadt
2012-04-10Handle file descriptor exhaustion in the accept() case.Theo de Raadt
ok claudio
2011-11-06Add a #include that's currently picked up via another header that'sPhilip Guenthe
violating namespace rules ok claudio@
2011-08-20Decouple log_verbose() from log_init() so the verbose flag stays set withStuart Henderson
"-v" (previously only "-vd" worked). Similar to recent ospfd commit. ok claudio@
2011-07-07It helps to set the sdl_family so that the kernel knows what this is.Claudio Jeker
2011-07-07Rework the distribution of link state and iface FSM state changes.Claudio Jeker
Link state changes are sent from the parent to both childs and iface FSM state changes are sent from the ospfe to the rde.
2011-07-07Only send interface address changes to the ospfe/rde if the interfaceClaudio Jeker
is actually used by the config. This should fix the exits caused when interfaces are dynamically added to the kernel.
2011-07-07Just use if_find() to find an interface by ifindex.Claudio Jeker
2011-07-07correct/change some debug and fatal messages.Claudio Jeker
2011-07-07KNFClaudio Jeker
2011-07-07Commit stuff that I added to another tree eventhough it should haveClaudio Jeker
been in the last commit. I should not work on multiple laptops at the same time.
2011-07-07Kill nh_reachable. Link state checking is so easy now that it does notClaudio Jeker
matter anymore to cache this value for ospf6d.
2011-07-04LINK_STATE_IS_UP() cleanup userland part. There is no need to specialClaudio Jeker
case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does the right job. OK deraadt@ henning@ This needs a -current kernel or link state may be not reported correctly.