aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/route6d
Commit message (Collapse)AuthorAgeFilesLines
* packages: move route(6)d to the rip packageLexi Winter2025-08-071-0/+1
| | | | | | | | 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-061-1/+6
| | | | | | | | | | | | | | | | | | | 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
* route6d: Fix typo (triple S)Jose Luis Duran2023-12-281-1/+1
| | | | | Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/955
* usr.sbin: Remove ancient SCCS tags.Warner Losh2023-11-272-4/+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$: two-line nroff patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-163-3/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c comment patternWarner Losh2023-08-162-2/+0
| | | | Remove /^/[*/]\s*\$FreeBSD\$.*\n/
* Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-161-2/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* route6d: Fix typosElyes Haouas2023-06-021-1/+1
| | | | | | Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/653
* Update/fix Makefile.depend for userlandSimon J. Gerraty2023-04-191-1/+0
|
* Use the right variable when updating interface routes.Mark Johnston2018-08-081-2/+4
| | | | | | | | | PR: 229807 Submitted by: John Hay <jhay@meraka.org.za> MFC after: 2 weeks Notes: svn path=/head/; revision=337500
* Reduce <sys/queue.h> pollution.Dag-Erling Smørgrav2018-05-111-0/+1
| | | | | | | | | | | | While <sys/sysctl.h> includes <sys/queue.h> unconditionally, it is only actually used in code which is conditional on _KERNEL. Make the #include itself conditional as well, and fix userland code that uses <sys/queue.h> for other purposes but relied on <sys/sysctl.h> to bring it in. MFC after: 1 week Notes: svn path=/head/; revision=333475
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-203-3/+9
| | | | | | | | | | | | | | | | | 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-311-1/+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-3/+13
| | | | | | | | | | | | | | | | | | | 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
* Purge varargs.h in favor of stdarg.h.Hiroki Sato2017-01-131-45/+0
| | | | Notes: svn path=/head/; revision=312018
* - Add static for functions and variables with internal linkage.Hiroki Sato2017-01-131-212/+194
| | | | | | | | | | - Quiet down -Wcast-align warnings. - Remove dead code. There is no functionality change. Notes: svn path=/head/; revision=312013
* - Fix dereference of NULL pointer which could cause a crash [1]Hiroki Sato2017-01-121-4/+13
| | | | | | | | | | | - Fix memory leak due to lack of freeaddrinfo() [2] CID: 1018281 [1] CID: 1225057 [2] MFC after: 3 days Notes: svn path=/head/; revision=311994
* Fix uninitialized variable CIDs in route6dAlan Somers2017-01-121-0/+2
| | | | | | | | | | | | | The variables in question are actually return arguments, but it's still good form to initialize them. Reported by: Coverity CID: 979679 979680 MFC after: 4 weeks Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=311985
* Use nitems(mib) instead of hardcoding mib's lengthEnji Cooper2017-01-091-4/+4
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=311713
* Sort #includesEnji Cooper2017-01-091-26/+22
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=311712
* Clean up trailing whitespaceEnji Cooper2017-01-091-23/+23
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=311711
* Use strlcpy() instead of strncpy() when copying ifname to ensureDon Lewis2016-05-151-1/+1
| | | | | | | | | | | | that it is NUL terminated. Additional NUL padding is not required for short names. Reported by: Coverity CID: 1009974 MFC after: 1 week Notes: svn path=/head/; revision=299869
* route6d(8): Fix potential double-freeConrad Meyer2016-05-111-1/+3
| | | | | | | | | | | | | In the case that the subsequent sysctl(3) call failed, 'buf' could be free(3)ed repeatedly. It isn't clear to me that that case is possible, but be clear and do the right thing in case it is. Reported by: Coverity CID: 272537 Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=299491
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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-271-1/+0
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge from head@274682Simon J. Gerraty2014-11-191-0/+2
| |\ | | | | | | | | | 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 headSimon J. Gerraty2014-04-281-26/+0
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * | | 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 with HEAD.David E. O'Brien2013-02-082-474/+533
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Stop including if_var.h from userland.Gleb Smirnoff2015-04-061-1/+0
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=281143
* | | | Recover sin6_scope_id of gateway addresses in riprecv() by using the if_indexHiroki Sato2014-08-201-0/+2
| |_|/ |/| | | | | | | | | | | | | | | | | | | | where a RIP packet was received. This fixes a bug which prevented gateway addresses in fe80::/64 from being added. Notes: svn path=/head/; revision=270234
* | | Remove unneeded fake _KERNEL definition.Gleb Smirnoff2014-03-231-2/+0
| | | | | | | | | | | | Notes: svn path=/head/; revision=263658
* | | Garbage collect long time obsoleted (or never used) stuff from routing API.Gleb Smirnoff2014-03-151-21/+0
| | | | | | | | | | | | Notes: svn path=/head/; revision=263203
* | | Axe IFF_SMART. Fortunately this layering violating flag was never used,Gleb Smirnoff2013-11-051-3/+0
| |/ |/| | | | | | | | | | | it was just declared. Notes: svn path=/head/; revision=257699
* | Minor mdoc fix.Joel Dahl2012-11-181-1/+1
| | | | | | | | Notes: svn path=/head/; revision=243242
* | - Increase the number of retry for NET_RT_DUMP from 5 to 15.Hiroki Sato2012-11-182-9/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | - Use 2001:db8:: as an example instead of deprecated 3ffe:: address block. - Add check for connected routes. - Add support of RTM_IFANNOUNCE for dyanmically-added/removed interfaces. - Add support of *, ?, and [ in the interface list. - Add -P number to specify route flag which will never expire. - Add -Q number to specify route flag which route6d will add to routes via RIP. - Add -p pidfile to specify the process ID file. Notes: svn path=/head/; revision=243233
* | Overhaul of route6d(8):Hiroki Sato2012-11-181-443/+390
| | | | | | | | | | | | | | | | | | | | | | | | - Use queue(3) for linked-list. - Use a consistent naming scheme for struct members. - Use ANSI C style function declaration. - Add check of RTM_VERSION mismatch. There is no functional change. Notes: svn path=/head/; revision=243232
* | Use sin6_scope_id instead of KAME-specific embedded scope id.Hiroki Sato2012-11-181-27/+8
|/ | | | Notes: svn path=/head/; revision=243231
* Spelling fixes for usr.sbin/Ulrich Spörlein2011-12-301-1/+1
| | | | Notes: svn path=/head/; revision=228990
* In usr.sbin/route6d/route6d.c, use the correct printf length modifierDimitry Andric2011-12-181-1/+1
| | | | | | | | | for an ssize_t. MFC after: 1 week Notes: svn path=/head/; revision=228674
* The last big commit: let usr.sbin/ use WARNS=6 by default.Ed Schouten2010-01-021-0/+2
| | | | Notes: svn path=/head/; revision=201390
* This main goals of this project are:Qing Li2008-12-151-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=186119
* Cleanup of userland __P useKevin Lo2007-11-071-57/+57
| | | | Notes: svn path=/head/; revision=173412