summaryrefslogtreecommitdiff
path: root/usr.sbin/route6d
AgeCommit message (Collapse)Author
2018-07-11Remove RTM_LOSING from the file, it is no longer used by OpenBSD andClaudio Jeker
route6d is not realy using it anyway. OK henning@
2018-07-01more RTM_LOCK removalsTheo de Raadt
2018-07-01Retire support for unused RTM_LOCK messages, it's redundant w/ RTM_CHANGE.Martin Pieuchot
ok tb@, sthen@
2018-06-14fix mem leakFlorian Obser
from Thomas Barabosch (thomas.barabosch AT fkie fraunhofer de), thanks! OK tb
2018-01-16Recycle IFF_NOTRAILERS into IFF_STATICARP and document ownerhsipMartin Pieuchot
of IFF* flags. inputs from jmc@, ok bluhm@, visa@
2017-08-23No need to handle more than one routing message here.Jeremie Courreges-Anglas
2017-07-28pass the size of the dst buffer to strlcat, not the source; pointedFlorian Obser
out by clang OK kettenis
2017-03-21From a syslog perspective it does not make sense to log fatal andAlexander Bluhm
warn with the same severity. Switch log_warn() to LOG_ERR and keep fatal() at LOG_CRIT. OK reyk@ florian@
2017-03-13Add OpenBSD RCS id.Alexander Bluhm
2016-08-126bone -> documentation rangeJeremie Courreges-Anglas
2016-08-05Add a -u switch to always log route insertions/deletions.Jeremie Courreges-Anglas
Route updates (and associated warnings) are always prefixed with "RTADD" or "RTDEL". This is useful for people that previously used the -R option that got removed. Tested by Freddy Dissaux.
2016-08-05Use tighter pledge(2) restrictions.Jeremie Courreges-Anglas
Made possible by the logging overhaul. Tested by Freddy Dissaux.
2016-08-05Rework logging.Jeremie Courreges-Anglas
Use log.c like in many other daemons, with small additions to maintain a log queue (useful to dump a single log line with several logging statements). Use log.c to dump the internal state, and remove the -R option (a similar feature will be implemented differently soon). The end goal is to avoid touching the filesystem and use much tighter pledge(2) restrictions. Tested by Freddy Dissaux.
2016-07-13Introduce RTF_MULTICAST and flag corresponding IPv6 routes as suchMartin Pieuchot
instead of abusing RTF_CLONING. Fix a leak reporeted by Aaron Riekenberg on misc@, ok sthen@
2016-07-06route6d spring cleanupJeremie Courreges-Anglas
Various tweaks and fixes: - nuke util.h, not needed since pidfile(3) went away - nuke the rrt_same member of struct riprt, "future use" since import - mark rtdexit as __dead - nuke progname handling - fix pid handling: cache the pid *after* calling daemon(3) - nuke setting rtm_pid. The kernel is responsible for setting this in routing messages. - nuke the useless myseq variable ok florian@ benno@ millert@ deraadt@ renato@
2016-01-25No need to declare main().Jeremie Courreges-Anglas
2016-01-25malloc+memset -> callocJeremie Courreges-Anglas
2015-12-19Remove NULL-check before free().mmcc
2015-11-30Sort includes.Jeremie Courreges-Anglas
2015-11-30Fix error message after conversion from select(2) to poll(2).Jeremie Courreges-Anglas
2015-10-26Partial revert of r1.79, "np" handling is a bit trickier than expected.Jeremie Courreges-Anglas
2015-10-26Rename the struct pollfd array, "set" -> "pfd"Jeremie Courreges-Anglas
"set" reminds of select(2) fd_set, and is never used elsewhere in the tree as a name for a pollfd array. No functional change.
2015-10-26Those variables should be local to the functions where they are used.Jeremie Courreges-Anglas
Gets rid of a lot of warnings with -Wshadow. No functional change.
2015-10-26Kill unused variable and function.Jeremie Courreges-Anglas
No functional change.
2015-10-25hms() returns a pointer to static storage, annotate the return type with "const"Jeremie Courreges-Anglas
No functional change.
2015-10-25Correctly print size_t/time_t.Jeremie Courreges-Anglas
No functional change.
2015-10-25Plug memory leak introduced in r1.15.Jeremie Courreges-Anglas
No functional change.
2015-10-25Those two functions take no parameters, thus /* ARGSUSED */ is meaningless.Jeremie Courreges-Anglas
No functional change.
2015-10-25Sync surrounding code after reallocarray introduction.Jeremie Courreges-Anglas
No functional change.
2015-10-25Rename allocopy() to xstrdup(), and make use of strdup(3).Jeremie Courreges-Anglas
No functional change.
2015-10-25Kill unused ROUTE6D_CONF define.Jeremie Courreges-Anglas
Since 1999 no one has found the need to write support for a config file.
2015-10-25Another pidfile(3) removal; ok benno@Jeremie Courreges-Anglas
2015-10-18Tweak previous: call fatal(), not err(3), for consistency. err.h goes away.Jeremie Courreges-Anglas
2015-10-17route6d pledges to use only "stdio rpath wpath cpath inet route mcast"Jeremie Courreges-Anglas
ok deraadt@
2015-10-16Unbreak route6d.Jeremie Courreges-Anglas
Instead of breaking sendmsg(2) by adding unneeded space to its cmsg item, add space to the cmsg used by recvmsg(2), where it will be used to get the incoming packet hop limit. Reported by several over the last years, and more recently by 'bsdsx', who tested it against NetBSD route6d. Also works against Quagga ripng. ok deraadt@ sthen@
2015-09-11RTF_XRESOLVE is gone.Martin Pieuchot
2015-09-10delete obsolete .Bk from the SYNOPSISIngo Schwarze
and delete some useless .No while here
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
ok millert krw
2015-02-04Fix potentional double free in do-while-loop.Alexander Bluhm
Found by Benjamin Baier with llvm/scan-build; OK florian@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-10-08obvious reallocarray(); ok dougTheo de Raadt
2014-03-24Remove commented out MSG_DONTROUTE flag. No object change.Martin Pieuchot
ok florian@
2014-01-22RTA_GENMASK is going to die soon so no need to handle it anymore.Claudio Jeker
OK benno@ and agreed by dlg@
2014-01-07Asa Yeamans points out that we need to CMSG_SPACE[] for the 2nd messageTheo de Raadt
as well. ok guenther millert
2013-10-17The header file netinet/in_var.h included netinet6/in6_var.h. ThisAlexander Bluhm
created a bunch of useless dependencies. Remove this implicit inclusion and do an explicit #include <netinet6/in6_var.h> when it is needed. OK mpi@ henning@
2013-08-26replace rand(3)/random(3) calls with secure arc4random*()Christian Weisgerber
npppd ok yasuoka@ ok millert@
2013-08-22Correct format string mismatches turned up by -Wformat=2Philip Guenther
suggestions and ok millert@
2013-03-21create realloc() loops around sysctl for array-based mibs, in programsTheo de Raadt
which want a "full" dump ok dlg
2012-09-26last stage of rfc changes, using consistent Rs/Re blocks, and moving theJason McIntyre
references into a STANDARDS section;
2012-06-21rfc 3542 obsoletes rfc 2292; ok guentherJason McIntyre