aboutsummaryrefslogtreecommitdiff
path: root/sbin/routed
Commit message (Collapse)AuthorAgeFilesLines
* packages: move route(6)d to the rip packageLexi Winter2025-08-072-1/+3
| | | | | | | | These are deprecated, but in the mean time, move them to another package. routed in particularly doesn't need to be in -runtime. Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D51783
* deprecate RIPLexi Winter2025-07-062-2/+14
| | | | | | | | | | | | | | | | | | | Per https://wiki.freebsd.org/DeprecationPlan, deprecate RIP in 15.0R, with the intention of removing it in 16.0R. Add a note to the manpages of routed(8), rdisc(8), rtquery(8), route6d(8) and rip6query(8) noting that they will be removed in a future release. RIP has been obsolete for over 20 years and no one is running it on modern networks. If someone really needs RIP, there are alternatives such as 'bird' or 'quagga' available from ports; there is no need to ship it in base. Relnotes: yes Reviewed by: des Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50292
* Remove residual blank line at start of MakefileWarner Losh2024-07-151-1/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* sbin: Automated cleanup of cdefs and other formattingWarner Losh2023-11-271-1/+0
| | | | | | | | | | | | | | | | Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
* Remove copyright strings ifdef'd outWarner Losh2023-11-272-17/+0
| | | | | | | | | | | We've ifdef'd out the copyright strings for some time now. Go ahead and remove the ifdefs. Plus whatever other detritis was left over from other recent removals. These copyright strings are present in the comments and are largely from CSRG's attempt at adding their copyright to every binary file (which modern interpretations of the license doesn't require). Sponsored by: Netflix
* sbin: Remove ancient SCCS tags.Warner Losh2023-11-276-16/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-165-5/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: alt one-line .c patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n/
* Remove $FreeBSD$: alt two-line .c patternWarner Losh2023-08-169-26/+0
| | | | Remove /^\s*__RCSID\("\$FreeBSD\$"\);\n\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-1613-26/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* Mark usage function as __dead2 in programs where it does not returnAlfonso Gregory2023-07-071-1/+1
| | | | | | | | In most cases, usage does not return, so mark them as __dead2. For the cases where they do return, they have not been marked __dead2. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/735
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-192-2/+0
|
* Bump .Dd for recently modified manual pagesFernando Apesteguía2022-06-271-1/+1
| | | | | | | | During the removal of named(8) references, some pages were modified but their .Dd where not updated accordingly. Reported by: lwhsu@ Fixes: 942e234d868d
* Remove references to named(8)Fernando Apesteguía2022-06-261-4/+3
| | | | | | | | named(8) hasn't been in base for some time. Remove all references to it in manual pages. Approved by: manpages (Pau Amma) Differential Revision: https://reviews.freebsd.org/D35586
* routed(8): Remove a double word in a source code commentGordon Bergling2022-04-091-1/+1
| | | | | | - s/it it/it/ MFC after: 3 days
* sbin/routed: Remove unused code for sgi and NetBSD.Xin LI2020-12-2611-142/+0
| | | | MFC after: 2 weeks
* 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