summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Simplify shutdown process.renato2016-09-033-69/+42
| | | | | | | | | | | | | On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@
* work on making log.c similar in all daemons:benno2016-09-021-0/+202
| | | | | | | move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
* work on making log.c similar in all daemons:benno2016-09-027-202/+36
| | | | | | | move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@, feedback from henning@, deraadt@, reyk@
* do not allow whitespace in macro names, i.e. "this is" = "a variable".benno2016-06-211-1/+9
| | | | | | | | change this in all config parsers in our tree that support macros. problem reported by sven falempin. feedback from henning@, stsp@, deraadt@ ok florian@ mikeb@
* add format attributes to the proper functions and then fix thebenno2016-06-062-12/+20
| | | | warning in rde.c
* ospf6d looks for net.inet6.ip6.forwarding, not net.inet.ip.forwarding.reyk2016-02-141-3/+3
| | | | OK jca@ jmc@ sthen@ claudio@
* Remove setproctitle() for the parent process. Because rc.d(8) uses processsthen2016-02-021-4/+1
| | | | | | titles (including flags) to distinguish between daemons, this makes it possible to manage multiple copies of a daemon using the normal infrastructure by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@
* EAGAIN handling for imsg_read. OK henning@ benno@claudio2015-12-054-15/+16
|
* strings.h -> string.h to prevent an implicit declaration warning.mmcc2015-12-051-2/+2
|
* As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d.stsp2015-09-275-13/+13
| | | | | And some ifmedia64 fixes. "move forward" deraadt@
* use file system path (.Pa) semantic markup macros where appropriate.sobrado2015-07-271-4/+4
| | | | ok jmc@
* Similar to bgpd and ospfd skip broadcast (should not happen) and llinfoclaudio2015-07-171-3/+14
| | | | routes also adjust the tracking of connected routes to the new way.
* use the sizeof the struct not the sizeof a pointer to the structjsg2015-05-051-2/+2
| | | | ok claudio@
* Use sizeof(u_short) in the first check since there are RT messages thatclaudio2015-02-111-2/+2
| | | | | are less then sizeof(*rtm) bytes long (e.g. interface announcements). Found the hard way by phessler@
* Same session_socket_blockmode() changes as done to ospfd. Also do the sameclaudio2015-02-105-48/+24
| | | | kroute change (make socket non-blocking and add trigger for partial reads).
* When comparing the LSA with the Ack, also check the age field. Thisbluhm2015-01-281-2/+9
| | | | | ensures that a LSA withdrawal is not acked by a previous update. From Florian Riehm; OK claudio@
* remove a stupid -Wstrict-prototype warning by making the hash functiontedu2015-01-221-2/+2
| | | | static. noticed by florian riehm
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-163-7/+7
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* simple to use siphash here. ok deraadttedu2014-12-181-6/+13
|
* Don't allow embedded nul characters in strings.jsg2014-11-201-1/+4
| | | | | | | Fixes a pfctl crash with an anchor name containing an embedded nul found with the afl fuzzer. pfctl parse.y patch from and ok deraadt@
* Nuke more obvious #include duplications.krw2014-11-182-4/+2
| | | | ok deraadt@ millert@ tedu@
* Convert the logic in yyerror(). Instead of creating a temporarybluhm2014-11-033-10/+9
| | | | | format string, create a temporary message. OK deraadt@ claudio@
* Add gcc format attributes to parse.y for ospf{6,}d.doug2014-11-021-4/+8
| | | | | | Fix a few yyerror() lines that are missing arguments. ok claudio@ sthen@
* Remove unnecessary netinet/in_systm.h include.lteo2014-10-254-8/+4
| | | | ok millert@
* Close connections when msgbuf_write() returns 0.krw2014-07-123-9/+21
| | | | ok claudio@
* Close the control fd when it has reported EOF.krw2014-07-111-2/+2
| | | | ok henning@
* The second level of the CTL_NET sysctl is a PF_*, not an AF_*guenther2014-06-231-3/+3
| | | | inconsistent usage in route(8) noted by Gregor Best (gbe (at) ring0.de)
* Passing MSG_DONTROUTE to sendto() here has no effect since SO_DONTROUTEmpi2014-03-241-2/+2
| | | | | | is only implemented for IPv4. Just remove it. Tested by and ok florian@
* relax the cfg file secrecy check slightly to allow group readabilityhenning2014-01-221-3/+3
| | | | | default permissions and mtree NOT changed. prodded by benno, ok phessler benno jmatthew theo pelikan florian
* use u_char for buffers in yylex, for ctype callsbenno2013-11-251-7/+7
| | | | found by millert@, ok deraadt@
* handle msgbuf_write() returning EAGAIN,benno2013-11-134-11/+11
| | | | | | taken from claudios previous fix to ospfd. "do it" deraadt@
* another annoying %ideraadt2013-11-011-2/+2
|
* another simple %i to %d conversion for obviousnessderaadt2013-10-301-3/+3
|
* typo in function name in log messagesthen2013-10-181-2/+2
|
* no longer any need to quote macro lines with >9 args;jmc2013-08-141-3/+3
| | | | From: Jan Stary
* Simplify code, no binary change.claudio2013-05-091-5/+3
|
* sync w/ospfd: improve snapshot handling; ok claudio, sthenmarkus2013-03-258-15/+38
|
* sync w/ospfd: ignore the nbr_adj_timer if we are not formingmarkus2013-03-251-3/+3
| | | | adjacencies; ok claudio sthen
* sync w/ospfd: the event NBR_EVT_SEQ_NUM_MIS is not defined in statemarkus2013-03-251-2/+1
| | | | NBR_STA_XSTRT; ok claudio@ sthen@
* sync w/ ospfd:markus2013-03-251-2/+4
| | | | | | 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@
* sync w/ospfd: allow two minutes until neighbor adjacencies are formed;markus2013-03-251-2/+2
| | | | ok claudio@ sthen@
* tweak previous; ok sthenjmc2013-03-221-2/+2
|
* port from ospfd/lsreq.c r1.20, ok claudio@sthen2013-03-221-2/+4
| | | | | | | 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@
* Allow use of an alternative control socket, ported from ospfd. ok claudio@sthen2013-03-226-22/+34
|
* sync comment typos/whitespace with ospfdsthen2013-03-221-3/+4
|
* typo in commentsthen2013-03-221-2/+2
|
* gratuitous whitespace diff with ospfd/ospf.hsthen2013-03-221-3/+3
|
* handle ECONNABORTED errors from accept(). In many code blocks they can bederaadt2013-03-111-2/+3
| | | | | ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
* sync yyerror() with version in bgpd so that it logs to syslog when daemonized.sthen2013-03-061-5/+8
| | | | ok florian@
* kroute.c rev 1.69 of ospfd for ospf6dflorian2013-01-142-5/+17
| | | | | | | | | | | ------------------------------------------------------------------------ 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@