aboutsummaryrefslogtreecommitdiff
path: root/sbin/route/route.8
Commit message (Collapse)AuthorAgeFilesLines
* route(8): clarify -prefixlen descriptionEnji Cooper2019-01-101-7/+7
| | | | | | | | | | | | | | | | | Try to reword -prefixlen section to more clearly and accurately describe how the -prefixlen modifier works. While here, fix a word that igor considered a typo: aggregatable addresses is a valid technical term per RFC-2374, however, it was superseded by the term "aggregator" in RFC-3587. MFC after: 1 week Reviewed by: 0mp, crees Approved by: emaste (mentor) Differential Revision: https://reviews.freebsd.org/D10087 Notes: svn path=/head/; revision=342904
* Fix route manpage to show correct flush syntaxRyan Stone2018-02-211-1/+2
| | | | | | | | | | | | | | The current route(8) manpage shows that "flush" is an argument to the optional -n flag, rather than a separate subcommand. Correct this to properly show flush as a route subcommand. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Reviewed by: rgrimes Differential Revision: https://reviews.freebsd.org/D14401 Notes: svn path=/head/; revision=329744
* Allow route change requests to not specify the gateway.Ryan Stone2018-02-211-3/+15
| | | | | | | | | | | | | | | | | | | Only require a gateway to be specified on a route add request. On a route change request that does not specify the gateway, the gateway will remain the same. This allows changing other route parameters without having to re-specifying the gateway, like in "route change 10.0.0.0/8 -mtu 9000". Update the route(8) manpage to explicitly call out this usage as being supported. MFC after: 2 weeks Sponsored by: Dell EMC Isilon Reviewed By: eugen (rtsock.c change), rgrimes Differential Revision: https://reviews.freebsd.org/D14291 Notes: svn path=/head/; revision=329743
* Typo, the '-6' option selects inet6.Konstantin Belousov2017-08-151-1/+1
| | | | | | | | Sponsored by: The FreeBSD Foundation MFC after: 3 days Notes: svn path=/head/; revision=322550
* Renumber copyright clause 4Warner Losh2017-02-281-1/+1
| | | | | | | | | | | | 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
* Kill custom in_matroute() radix mathing function removing one rte mutex lock.Alexander V. Chernikov2014-11-111-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initially in_matrote() in_clsroute() in their current state was introduced by r4105 20 years ago. Instead of deleting inactive routes immediately, we kept them in route table, setting RTPRF_OURS flag and some expire time. After that, either GC came or RTPRF_OURS got removed on first-packet. It was a good solution in that days (and probably another decade after that) to keep TCP metrics. However, after moving metrics to TCP hostcache in r122922, most of in_rmx functionality became unused. It might had been used for flushing icmp-originated routes before rte mutexes/refcounting, but I'm not sure about that. So it looks like this is nearly impossible to make GC do its work nowadays: in_rtkill() ignores non-RTPRF_OURS routes. route can only become RTPRF_OURS after dropping last reference via rtfree() which calls in_clsroute(), which, it turn, ignores UP and non-RTF_DYNAMIC routes. Dynamic routes can still be installed via received redirect, but they have default lifetime (no specific rt_expire) and no one has another trie walker to call RTFREE() on them. So, the changelist: * remove custom rnh_match / rnh_close matching function. * remove all GC functions * partially revert r256695 (proto3 is no more used inside kernel, it is not possible to use rt_expire from user point of view, proto3 support is not complete) * Finish r241884 (similar to this commit) and remove remaining IPv6 parts MFC after: 1 month Notes: svn path=/head/; revision=274363
* Remove AppleTalk support.Gleb Smirnoff2014-03-141-5/+2
| | | | | | | | | | | | | AppleTalk was a network transport protocol for Apple Macintosh devices in 80s and then 90s. Starting with Mac OS X in 2000 the AppleTalk was a legacy protocol and primary networking protocol is TCP/IP. The last Mac OS X release to support AppleTalk happened in 2009. The same year routing equipment vendors (namely Cisco) end their support. Thus, AppleTalk won't be supported in FreeBSD 11.0-RELEASE. Notes: svn path=/head/; revision=263152
* Remove IPX support.Gleb Smirnoff2014-03-141-1/+0
| | | | | | | | | | | | | | IPX was a network transport protocol in Novell's NetWare network operating system from late 80s and then 90s. The NetWare itself switched to TCP/IP as default transport in 1998. Later, in this century the Novell Open Enterprise Server became successor of Novell NetWare. The last release that claimed to still support IPX was OES 2 in 2007. Routing equipment vendors (e.g. Cisco) discontinued support for IPX in 2011. Thus, IPX won't be supported in FreeBSD 11.0-RELEASE. Notes: svn path=/head/; revision=263140
* Bump dates in nestat(1) and route(8) man pages.Alexander V. Chernikov2014-01-111-5/+4
| | | | | | | | | | Fix several small errors introduced by r260524. Suggested by: glebius MFC after: 2 weeks Notes: svn path=/head/; revision=260540
* Add -4/-6 shorthand for -finet/-finet6 in route(8) and netstat(8).Alexander V. Chernikov2014-01-101-2/+20
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=260524
* - Add relative specification in expiration time.Hiroki Sato2013-10-171-1/+13
| | | | | | | | - Add proto3 option for RTF_PROTO3. - Use %lu for members of struct rt_metrics. Notes: svn path=/head/; revision=256695
* Add -fib modifier to specify FIB number. The FIB number can be in aHiroki Sato2012-11-171-8/+45
| | | | | | | | | | | | | | comma-separated list and/or range specification: # route add -inet 192.0.2.0/24 198.51.100.1 -fib 1,3-5,6 Although all of the subcommands supports the modifier, "monitor" does not support the list or range specification at this moment. Reviewed by: bz Notes: svn path=/head/; revision=243185
* Remove superfluous paragraph macro.Joel Dahl2012-03-251-1/+0
| | | | Notes: svn path=/head/; revision=233458
* Document the show alias and add an EXAMPLES section.Joel Dahl2012-03-241-1/+36
| | | | Notes: svn path=/head/; revision=233418
* remove stale references to RTF_CLONING and RTF_LLINFOKip Macy2009-09-041-21/+0
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=196833
* Document -t.David E. O'Brien2007-11-011-0/+4
| | | | Notes: svn path=/head/; revision=173261
* Document that -q option is also applicable to the "change" command.Ruslan Ermilov2005-10-021-2/+2
| | | | | | | | PR: docs/85095 Submitted by: Rostislav Krasny Notes: svn path=/head/; revision=150820
* Introduce "route del" as an alias to "route delete".Anton Berezin2005-09-281-1/+5
| | | | | | | Reviewed by: arch Notes: svn path=/head/; revision=150679
* Expand *n't contractions.Ruslan Ermilov2005-02-131-1/+1
| | | | Notes: svn path=/head/; revision=141846
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
| | | | Notes: svn path=/head/; revision=140415
* Added the EXIT STATUS section where appropriate.Ruslan Ermilov2005-01-171-1/+1
| | | | Notes: svn path=/head/; revision=140368
* Scheduled mdoc(7) sweep.Ruslan Ermilov2005-01-101-1/+1
| | | | Notes: svn path=/head/; revision=139987
* Fix markup: .Dv -> .VaBruce M Simpson2004-11-041-2/+2
| | | | | | | | | Update document dates. Prodded by: ru Notes: svn path=/head/; revision=137189
* Document the fact that blackhole routes normally need to be boundBruce M Simpson2004-11-041-0/+10
| | | | | | | | | | | to lo(4) interfaces to have an effect, and that this is not needed when using IP fast forwarding. Sponsored by: eXtensible Open Router Project <URL:http://www.xorp.org/> MFC after: 3 weeks Notes: svn path=/head/; revision=137180
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-3/+6
| | | | Notes: svn path=/head/; revision=131488
* Assorted markup, grammar, and spelling fixes.Ruslan Ermilov2004-05-171-1/+1
| | | | Notes: svn path=/head/; revision=129327
* Remove advertising clause from University of California Regent's license,Mark Murray2004-04-091-4/+0
| | | | | | | | | per letter dated July 22, 1999. Approved by: core, imp Notes: svn path=/head/; revision=128073
* Add a describtion for the '-d' flagChristian Brueffer2003-11-101-1/+3
| | | | | | | | | | | While I'm here, add a missing comma PR: 41787 Obtained from: OpenBSD MFC after: 5 days Notes: svn path=/head/; revision=122423
* Add the -xresolve flag to the route(8) man page.Bruce M Simpson2003-09-261-0/+9
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=120484
* The .Nm utility.Philippe Charnier2002-07-061-5/+7
| | | | Notes: svn path=/head/; revision=99503
* Respect -q with "add" and "delete". Document who respects -q.Ruslan Ermilov2002-05-251-1/+5
| | | | | | | PR: bin/38531 Notes: svn path=/head/; revision=97278
* mdoc(7) police: utilize the new .Ex macro.Ruslan Ermilov2001-08-151-3/+1
| | | | Notes: svn path=/head/; revision=81687
* mdoc(7) police:Ruslan Ermilov2001-08-071-1/+1
| | | | | | | | | | Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text. Not only this slows down the mdoc(7) processing significantly, but it also has an undesired (in this case) effect of disabling hyphenation within the entire enclosed block. Notes: svn path=/head/; revision=81251
* Remove whitespace at EOL.Dima Dorfman2001-07-151-14/+14
| | | | Notes: svn path=/head/; revision=79754
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).Ruslan Ermilov2001-07-061-3/+3
| | | | Notes: svn path=/head/; revision=79366
* Allow route(8) to create "proxy only" published ARP entries.Ruslan Ermilov2001-06-121-4/+13
| | | | | | | | PR: bin/12357 Submitted by: Craig Leres <leres@ee.lbl.gov> Notes: svn path=/head/; revision=78140
* When changing an indirect route, kernel routing code allocatesRuslan Ermilov2001-06-081-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a route to the gateway and caches it in the route structure. It may happen (if the routing table is screwed) that the gateway route is the same route as the one being modified, in which case a kernel reports EDQUOT. Be more verbose about this: # route add -net 10 192.168.4.65 add net 10: gateway 192.168.4.65 # netstat -rn -finet Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.4.65 UGSc 1 7 rl0 10 192.168.4.65 UGSc 0 0 rl0 127.0.0.1 127.0.0.1 UH 0 178 lo0 192.168.4 link#1 UC 2 0 rl0 => 192.168.4.65 0:d0:b7:16:9c:c6 UHLW 2 0 rl0 1123 Before: # route change -net 10 10.0.0.1 route: writing to routing socket: Disc quota exceeded change net 10: gateway 10.0.0.1: Disc quota exceeded After: # ./route change -net 10 10.0.0.1 route: writing to routing socket: Disc quota exceeded change net 10: gateway 10.0.0.1: gateway uses the same route PR: bin/1093, misc/26833 Notes: svn path=/head/; revision=77908
* Change the host/bits syntax introduced in route.c,v 1.24 to theRuslan Ermilov2001-06-081-3/+3
| | | | | | | | | | net/bits syntax, for consistency with netstat(1) in particular. OK'ed by: phk MFC after: 1 week Notes: svn path=/head/; revision=77904
* - Exit 1 if "add", "change", or "delete" operation fails.Ruslan Ermilov2001-06-071-0/+4
| | | | | | | | | | | | | | | PR: bin/12489 - Use inet_ntoa(3) where it should have been used. This part of code simply wasn't converted to the "new" style after the routename() function was converted from the protocol-generic version to protocol-specific version in CSRG revision 5.6. MFC after: 1 week Notes: svn path=/head/; revision=77873
* mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section.Dima Dorfman2001-04-131-7/+7
| | | | | | | Reviewed by: ru Notes: svn path=/head/; revision=75495
* mdoc(7) police: Change -filled displays (which just happenRuslan Ermilov2001-02-071-3/+3
| | | | | | | | | to be the same as -ragged in the current implementation) to -ragged. With mdocNG, -filled displays produce the correct output, formatted and justified to both margins. Notes: svn path=/head/; revision=72126
* Typo fix: forgot -> forget.Daniel Harris2000-11-261-1/+1
| | | | | | | | PR: 23113 Submitted by: Jimmy Olgeni <olgeni@uli.it> Notes: svn path=/head/; revision=69232
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-4/+7
| | | | Notes: svn path=/head/; revision=68960
* - Documented the host/bits syntax for destination argument.Ruslan Ermilov2000-09-291-3/+13
| | | | | | | - Documented that netmask could be specified with third argument. Notes: svn path=/head/; revision=66450
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,Yoshinobu Inoue1999-12-071-1/+24
| | | | | | | | | | | | | packet divert at kernel for IPv6/IPv4 translater daemon This includes queue related patch submitted by jburkhol@home.com. Submitted by: queue related patch from jburkhol@home.com Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project Notes: svn path=/head/; revision=54263
* MFS: forego->forgoNick Sayer1999-10-161-1/+1
| | | | Notes: svn path=/head/; revision=52323
* spell check != grammar check. :-)Nick Sayer1999-10-161-1/+1
| | | | Notes: svn path=/head/; revision=52320
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Mention the special destination "default" for default routes. Fix aGuy Helmer1999-05-041-4/+15
| | | | | | | | | couple of formatting bugs. PR: docs/9960 Notes: svn path=/head/; revision=46436
* Comment is .\" not .|'. Add -d and -t flags to SYNOPSIS and usage(). GetoptPhilippe Charnier1998-07-281-13/+14
| | | | | | | | returns -1. Correct use of .Nm. Spelling. Add rcsid and remove unused #include. Notes: svn path=/head/; revision=37907