aboutsummaryrefslogtreecommitdiff
path: root/sbin/routed
Commit message (Collapse)AuthorAgeFilesLines
* When bind fails, make sure we closed the socket we tried to bind theWarner Losh2017-12-281-0/+1
| | | | | | | | | address to. CID: 978244 Notes: svn path=/head/; revision=327276
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2013-12/+38
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-312-2/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Fix userland tools that don't check the format of routing socketPatrick Kelsey2017-04-161-0/+9
| | | | | | | | | | | | | | | | | | | messages before accessing message fields that may not be present, removing dead/duplicate/misleading code along the way. Document the message format for each routing socket message in route.h. Fix a bug in usr.bin/netstat introduced in r287351 that resulted in pointer computation with essentially random 16-bit offsets and dereferencing of the results. Reviewed by: ae MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D10330 Notes: svn path=/head/; revision=317035
* Renumber copyright clause 4Warner Losh2017-02-2814-14/+14
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* routed(8): Use arc4random_uniform instead of arc4random.Pedro F. Giffuni2016-05-151-7/+2
| | | | | | | | | | | | Use arc4random_uniform() when the desired random number upper bound is not a power of two. While here, we don't need srandom() and friends anymore. Obtained from: OpenBSD (CVS rev. 1.20) Notes: svn path=/head/; revision=299845
* routed(8): Misc. cleanups to squelch Coverity.Pedro F. Giffuni2016-05-152-4/+10
| | | | | | | | | | | | | | | | table.c: Copy into fixed size buffer. trace.c: Argument got dup2() cannot be negative. Copy into fixed size buffer. CID: 1006785, 1006786, 271301 Obtained from: NetBSD MFC after: 2 weeks. Notes: svn path=/head/; revision=299825
* routed(8): Dereference before null check.Pedro F. Giffuni2016-05-151-1/+1
| | | | | | | | | CID: 272432 Obtained from: NetBSD (CVS ref. 1.16) MFC after: 2 weeks. Notes: svn path=/head/; revision=299822
* routed(8): Avoid NULL de-reference and two possible memory leaks.Pedro F. Giffuni2016-05-151-3/+9
| | | | | | | | | | | | The reports and fixes are straightforward but it's nice to be able to confirm against NetBSD. CID: 271080, 272306, 272307 Obtained from: NetBSD (CVS ref. 1.21 - 1.23) MFC after: 2 weeks. Notes: svn path=/head/; revision=299821
* Avoid NULL de-references.Pedro F. Giffuni2016-05-141-2/+2
| | | | | | | | | CID: 271079 Obtained from: NetBSD MFC after: 2 weeks. Notes: svn path=/head/; revision=299784
* routed(8): Use arc4random.Pedro F. Giffuni2016-05-141-2/+2
| | | | | | | | CID: 1305962 Obtained from: NetBSD (CVS Rev. 1.34, Itojun) Notes: svn path=/head/; revision=299777
* routed: Fix use after free.Pedro F. Giffuni2016-05-141-1/+2
| | | | | | | | | | | | | For the multihomed case, ifp be used after being freed. NULL the value after freeing it and avoid getting into the branch without reassigning a new value. CID: 272671 Obtained from: NetBSD MFC after: 2 weeks Notes: svn path=/head/; revision=299771
* routed(8): use NULL instead of zero for pointers.Pedro F. Giffuni2016-05-1410-227/+230
| | | | Notes: svn path=/head/; revision=299768
* Add devd and routed back to the runtime package insteadGlen Barber2016-02-102-2/+2
| | | | | | | | | | | | | | of their individual packages based on MK_foo evaluation. There is no intent to split inet/inet6 or other similar combinations for package creation, since they are created during build time. Noticed/prodded by: lidl Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295456
* Create packages for atm, ccdconfig, devd, ipf, ipfw,Glen Barber2016-02-092-0/+2
| | | | | | | | | | | iscsi, natd, nandfs, pf, quotacheck, and routed. Add ping6 and rtsol to the runtime package. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295448
* META MODE: Update dependencies with 'the-lot' and add missing directories.Bryan Drewery2015-12-011-0/+2
| | | | | | | | | | | | | | | | | This is not properly respecting WITHOUT or ARCH dependencies in target/. Doing so requires a massive effort to rework targets/ to do so. A better approach will be to either include the SUBDIR Makefiles directly and map to DIRDEPS or just dynamically lookup the SUBDIR. These lose the benefit of having a userland/lib, userland/libexec, etc, though and results in a massive package. The current implementation of targets/ is very unmaintainable. Currently rescue/rescue and sys/modules are still not connected. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291563
* META_MODE: Remove DEP_MACHINE from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | This has not been needed since r246865 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288228
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288226
* Fix a bug which could make routed(8) daemon exit by sending a special RIPXin LI2015-08-051-0/+6
| | | | | | | | | query from a remote machine, similar to SA-14:21.routed. Submitted by: hrs Notes: svn path=/head/; revision=286347
* Add META_MODE support.Simon J. Gerraty2015-06-132-0/+44
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-274-5/+7
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-195-7/+35
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+0
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge from headSimon J. Gerraty2013-09-051-1/+1
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-222-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Belatedly commit the patch for SA-14:21 to head. It was not committed toDag-Erling Smørgrav2015-01-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | head at the time because it's a band-aid, rather than a complete fix, but the complete fix never materialized. Notes: svn path=/head/; revision=276602
* | | | mdoc: remove EOL whitespace.Joel Dahl2014-12-291-1/+1
| | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=276360
* | | | Convert sbin/ to LIBADDBaptiste Daroussin2014-11-252-4/+2
| |_|/ |/| | | | | | | | | | | | | | | | | Reduce overlinking Notes: svn path=/head/; revision=275030
* | | Fix a typo.Hiroki Sato2014-09-211-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=271921
* | | Fix a bug which could make routed(8) daemon exit by sending a special RIPHiroki Sato2014-09-215-7/+35
| |/ |/| | | | | | | | | | | | | | | query from a remote machine, and disable accepting it by default. This requests a routed(8) daemon to dump routing information base for debugging purpose. An -i flag to enable it has been added. Notes: svn path=/head/; revision=271919
* | mdoc sweepJoel Dahl2013-05-131-1/+1
|/ | | | Notes: svn path=/head/; revision=250604
* Fix a style bugKevin Lo2012-01-131-1/+1
| | | | Notes: svn path=/head/; revision=230045
* Spelling fixes for sbin/Ulrich Spörlein2012-01-073-5/+5
| | | | Notes: svn path=/head/; revision=229778
* Use NO_WARRAY_BOUNDS for sbin/routed/rtquery.Dimitry Andric2011-12-161-0/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=228607
* Fix use of AND operator: should be bitwise instead of logical.Rebecca Cran2010-11-221-2/+2
| | | | Notes: svn path=/head/; revision=215702
* mdoc: drop even more redundant .Pp callsUlrich Spörlein2010-10-191-1/+0
| | | | | | | | | No change in rendered output, less mandoc lint warnings. Tool provided by: Nobuyuki Koganemaru n-kogane at syd.odn.ne.jp Notes: svn path=/head/; revision=214054
* routed(8)/rtquery(8) bump/demote to WARNS=3 for all archsUlrich Spörlein2010-02-273-11/+12
| | | | | | | | | | | | - The MACHINE_ARCH check is not exhaustive (missing at least powerpc), and generally not worth maintaining. - While here, fix whitespace and ordering of the Makefile PR: bin/140081 Approved by: ed (co-mentor) Notes: svn path=/head/; revision=204405
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.Antoine Brodin2009-12-281-1/+1
| | | | | | | | | | | | Fix some wrong usages. Note: this does not affect generated binaries as this argument is not used. PR: 137213 Submitted by: Eygene Ryabinkin (initial version) MFC after: 1 month Notes: svn path=/head/; revision=201145
* Switch the default WARNS level for sbin/ to 6.Ruslan Ermilov2009-10-191-3/+1
| | | | | | | Submitted by: Ulrich Spörlein Notes: svn path=/head/; revision=198236
* Only raise WARNS to 6 on i386 and amd64, strict alignment platforms stillPoul-Henning Kamp2009-04-061-0/+4
| | | | | | | | barf at some of the gratuitous pointer gymnastics, and I do not see a simple solution. Notes: svn path=/head/; revision=190757
* Silence a printf warningPoul-Henning Kamp2009-04-051-1/+1
| | | | Notes: svn path=/head/; revision=190745
* Add some consts, remove some unused stuff and other attempts to calmPoul-Henning Kamp2009-04-059-31/+15
| | | | | | | FlexeLint down. Notes: svn path=/head/; revision=190718
* Fix casts which are not by definition safe, but which malloc(3)Poul-Henning Kamp2009-04-051-6/+6
| | | | | | | makes safe for us. Notes: svn path=/head/; revision=190717
* Some constificationsPoul-Henning Kamp2009-04-053-5/+7
| | | | Notes: svn path=/head/; revision=190716
* Modernize prototypes (ie: no extern)Poul-Henning Kamp2009-04-0510-168/+150
| | | | | | | Make lots of stuff static. Notes: svn path=/head/; revision=190715
* Convert list of remote interfaces to LIST_* macrosPoul-Henning Kamp2009-04-053-16/+8
| | | | Notes: svn path=/head/; revision=190713