summaryrefslogtreecommitdiffstats
path: root/sbin/routed
Commit message (Collapse)AuthorAgeFilesLines
* routed(8): Use arc4random_uniform instead of arc4random.pfg2016-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)
* routed(8): Misc. cleanups to squelch Coverity.pfg2016-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.
* routed(8): Dereference before null check.pfg2016-05-151-1/+1
| | | | | | CID: 272432 Obtained from: NetBSD (CVS ref. 1.16) MFC after: 2 weeks.
* routed(8): Avoid NULL de-reference and two possible memory leaks.pfg2016-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.
* Avoid NULL de-references.pfg2016-05-141-2/+2
| | | | | | CID: 271079 Obtained from: NetBSD MFC after: 2 weeks.
* routed(8): Use arc4random.pfg2016-05-141-2/+2
| | | | | CID: 1305962 Obtained from: NetBSD (CVS Rev. 1.34, Itojun)
* routed: Fix use after free.pfg2016-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
* routed(8): use NULL instead of zero for pointers.pfg2016-05-1410-227/+230
|
* Add devd and routed back to the runtime package insteadgjb2016-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
* Create packages for atm, ccdconfig, devd, ipf, ipfw,gjb2016-02-092-0/+2
| | | | | | | | iscsi, natd, nandfs, pf, quotacheck, and routed. Add ping6 and rtsol to the runtime package. Sponsored by: The FreeBSD Foundation
* META MODE: Update dependencies with 'the-lot' and add missing directories.bdrewery2015-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
* META_MODE: Remove DEP_MACHINE from Makefile.depend files.bdrewery2015-09-251-2/+0
| | | | | | This has not been needed since r246865 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.bdrewery2015-09-251-2/+0
| | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division
* Fix a bug which could make routed(8) daemon exit by sending a special RIPdelphij2015-08-051-0/+6
| | | | | | query from a remote machine, similar to SA-14:21.routed. Submitted by: hrs
* Add META_MODE support.sjg2015-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
| * dirdeps.mk now sets DEP_RELDIRsjg2015-06-081-2/+0
| |
| * Merge sync of headsjg2015-05-274-5/+7
| |\ | |/ |/|
| * Merge from head@274682sjg2014-11-195-7/+35
| |\
| * | Updated dependenciessjg2014-05-161-1/+0
| | |
| * | Updated dependenciessjg2014-05-101-0/+2
| | |
| * | Merge from headsjg2013-09-051-1/+1
| |\ \
| * | | Updated dependenciessjg2013-03-111-0/+1
| | | |
| * | | Updated dependenciessjg2013-02-161-2/+0
| | | |
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.marcel2012-08-222-0/+44
| | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net>
* | | | Belatedly commit the patch for SA-14:21 to head. It was not committed todes2015-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.
* | | | mdoc: remove EOL whitespace.joel2014-12-291-1/+1
| | | |
* | | | Convert sbin/ to LIBADDbapt2014-11-252-4/+2
| |_|/ |/| | | | | | | | Reduce overlinking
* | | Fix a typo.hrs2014-09-211-1/+1
| | |
* | | Fix a bug which could make routed(8) daemon exit by sending a special RIPhrs2014-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.
* | mdoc sweepjoel2013-05-131-1/+1
|/
* Fix a style bugkevlo2012-01-131-1/+1
|
* Spelling fixes for sbin/uqs2012-01-073-5/+5
|
* Use NO_WARRAY_BOUNDS for sbin/routed/rtquery.dim2011-12-161-0/+1
| | | | MFC after: 1 week
* Fix use of AND operator: should be bitwise instead of logical.brucec2010-11-221-2/+2
|
* mdoc: drop even more redundant .Pp callsuqs2010-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
* routed(8)/rtquery(8) bump/demote to WARNS=3 for all archsuqs2010-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)
* (S)LIST_HEAD_INITIALIZER takes a (S)LIST_HEAD as an argument.antoine2009-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
* Switch the default WARNS level for sbin/ to 6.ru2009-10-191-3/+1
| | | | Submitted by: Ulrich Spörlein
* Only raise WARNS to 6 on i386 and amd64, strict alignment platforms stillphk2009-04-061-0/+4
| | | | | barf at some of the gratuitous pointer gymnastics, and I do not see a simple solution.
* Silence a printf warningphk2009-04-051-1/+1
|
* Add some consts, remove some unused stuff and other attempts to calmphk2009-04-059-31/+15
| | | | FlexeLint down.
* Fix casts which are not by definition safe, but which malloc(3)phk2009-04-051-6/+6
| | | | makes safe for us.
* Some constificationsphk2009-04-053-5/+7
|
* Modernize prototypes (ie: no extern)phk2009-04-0510-175/+157
| | | | Make lots of stuff static.
* Convert list of remote interfaces to LIST_* macrosphk2009-04-053-16/+8
|
* Kick WARNS level up to 6 by fixing various trivial warnings.phk2009-04-056-9/+10
|
* Use <sys/queue.h> to manage the interface list.phk2009-04-058-41/+35
|
* Remove newlines from string argument of __COPYRIGHT(), it results inphk2009-04-051-2/+2
| | | | assembler warning messages.
* Send multicast on p2p interfaces if they can and are not prohibitedphk2009-04-051-2/+9
| | | | | | | from doing so with no_rip_mcast in /etc/gateways. This allows routed(8) to work with the way ports/security/openvpn employs the tun(4) interface.
* This main goals of this project are:qingli2008-12-151-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. separating L2 tables (ARP, NDP) from the L3 routing tables 2. removing as much locking dependencies among these layers as possible to allow for some parallelism in the search operations 3. simplify the logic in the routing code, The most notable end result is the obsolescent of the route cloning (RTF_CLONING) concept, which translated into code reduction in both IPv4 ARP and IPv6 NDP related modules, and size reduction in struct rtentry{}. The change in design obsoletes the semantics of RTF_CLONING, RTF_WASCLONE and RTF_LLINFO routing flags. The userland applications such as "arp" and "ndp" have been modified to reflect those changes. The output from "netstat -r" shows only the routing entries. Quite a few developers have contributed to this project in the past: Glebius Smirnoff, Luigi Rizzo, Alessandro Cerri, and Andre Oppermann. And most recently: - Kip Macy revised the locking code completely, thus completing the last piece of the puzzle, Kip has also been conducting active functional testing - Sam Leffler has helped me improving/refactoring the code, and provided valuable reviews - Julian Elischer setup the perforce tree for me and has helped me maintaining that branch before the svn conversion
OpenPOWER on IntegriCloud