summaryrefslogtreecommitdiffstats
path: root/sbin/route
Commit message (Collapse)AuthorAgeFilesLines
* Clear sin6_scope_id before passing routes into kernel, becaues kernelshin2000-03-111-0/+1
| | | | | | | | | | don't support routes with sin6_scope_id set. Without this fix, routes with IPv6 scoped addr won't work when it is assigned by "route" command. Approved by: jkh Reviewed by: ume
* Add an scope index embedded IPv6 link local addr creation support, by routeshin2000-02-231-0/+4
| | | | | | command. This is a workaround for some kernel interface which can't treat sin6_scope_id, yet.
* Support IPv6 scoped addr in ifconfig and routeshin2000-02-101-25/+71
| | | | | | | | | IPv6 scoped addr display is not yet supported by ifconfig and route. Now almost of IPv6 apps support it, so its support in ifconfig and route is important to keep consisetncy, and to avoid user confusion. Approved by: jkh
* Fix return value check for inet_pton().sumikawa2000-01-251-1/+1
| | | | Obtained from: KAME Project
* Merge bug fix from KAME repository.shin2000-01-081-7/+0
| | | | | | This fix enables inet6 default route addition. Suggested by: itojun
* Enable INET6 by default.shin1999-12-151-1/+1
| | | | This should be OK on non INET6 enabled kernel.
* udp IPv6 support, IPv6/IPv4 tunneling support in kernel,shin1999-12-074-8/+172
| | | | | | | | | | 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
* MFS: forego->forgonsayer1999-10-161-1/+1
|
* spell check != grammar check. :-)nsayer1999-10-161-1/+1
|
* Remove two more unnecessary function declarations/prototypes.billf1999-09-251-4/+0
|
* Include the proper headers, remove the unnecessary function declarations.billf1999-09-251-1/+2
|
* $Id$ -> $FreeBSD$peter1999-08-282-2/+2
|
* When incrementing through a SIOCGIFCONF list, enforce a lower limit ofarchie1999-06-051-2/+3
| | | | | | | | | sizeof(ifr->ifr_addr) for the variable length field ifr->ifr_addr.sa_len. Otherwise the increment will be wrong in certain cases. Obtained from: Whistle source tree For the record: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> suggests SIOCGIFCONF should be dropped in favor of a sysctl mechanism.
* Get rid of segfaults in a set-uid program.ru1999-06-011-8/+15
| | | | | PR: 11823 Reviewed by: des
* Mention the special destination "default" for default routes. Fix aghelmer1999-05-041-4/+15
| | | | | | couple of formatting bugs. PR: docs/9960
* Remove useless `BINOWN=root' now that it is the default.obrien1998-09-191-1/+0
|
* Comment is .\" not .|'. Add -d and -t flags to SYNOPSIS and usage(). Getoptcharnier1998-07-282-28/+24
| | | | | returns -1. Correct use of .Nm. Spelling. Add rcsid and remove unused #include.
* style(9) correctionsimp1997-12-261-2/+2
| | | | Submitted by: bde
* Two fixes:imp1997-12-241-6/+8
| | | | | 1) Correct strncpy usage 2) gethostbyaddr paranoia from Julian Assange
* fix what appears to me to be absolutle bogus codejulian1997-07-181-6/+7
| | | | | | | | to do with netmasks.. we fed totally bogus data into the kernel to do with default routes and it just believed us. this led to: 1/ kernel panics 2/ the default route refusing to be deleted or added (depending on a number of factors, usually it worked ok.)
* Sync beetween man page and usage string.charnier1997-06-182-4/+4
|
* Allow "modern" syntax:phk1997-04-021-5/+21
| | | | route add -net 192.168.64.0/20 bla bla bla
* unifdef CCITT, ISO & CRUFT.phk1997-04-023-303/+2
|
* Revert $FreeBSD$ to $Id$peter1997-02-222-2/+2
|
* Security patch from OpenBSD: fixes potential buffer overflow in a staticroberto1997-02-201-2/+3
| | | | | | | | buffer (so more difficult to exploit but better safe than sorry). Found by comparing FreeBSD & OpenBSD sources/logs for the auditing process. Reviewed by: Warner Losh Obtained from: OpenBSD
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-142-2/+2
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Sort cross references.wosch1997-01-131-2/+3
|
* If the RTM_NEWMADDR and RTM_DELMADDR messages are definedwollman1997-01-091-1/+13
| | | | | | (in <net/route.h>), then interpret them appropriately. This has no effect until I commit the changes to multicast group management (awaiting review).
* Fix up programs which expect <net/if.h> to include <sys/time.h> to insteadwollman1996-12-101-5/+7
| | | | | | do it themselves. (Some of these programs actually depended on this beyond compiling the definition of struct ifinfo!) Also fix up some other #include messes while we're at it.
* Delete another unnecessary #include <sys/mbuf.h>.wollman1996-11-011-2/+1
|
* setuid back to the original caller immediately after opening the route socket.fenner1996-10-271-14/+19
| | | | | | | | | | | | | | | | | Opening the socket is the only privileged operation route requires. Make a couple of static buffers bigger, and use strncpy() and snprintf() where there's a chance of overflow. Fixes PR bin/1903 Partially Submitted by: Ollivier Robert <roberto@keltia.freenix.fr> Don't look up the network number if we're being asked to add a host route. Fixes PR bin/1900 Submitted by: Bruce A. Mah <bmah@cs.berkeley.edu> (pr bin/1900)
* Bring back NS support for this utility - we need it for the commercial Novelljkh1996-10-161-1/+1
| | | | server software.
* Don't use __dead or __pure in user code. They were obfuscationsbde1996-09-141-3/+3
| | | | | | for gcc >= 2.5 and no-ops for gcc >= 2.6. Converted to use __dead2 or __pure2 where it wasn't already done, except in math.h where use of __pure was mostly wrong.
* back out a part of the previous patch that garrett objected to..julian1996-08-192-7/+2
|
* Submitted by: Archie@whistle.comjulian1996-08-133-3/+13
| | | | | | if making a interface route, and it's a P2P link, then also automatically lable it as an llinfo entry so that gated and friends don't clobber it..
* Reviewed by: julianjulian1996-08-093-2/+46
| | | | | | | | | | | | | | | | | | Submitted by: archie@whistle.com This patch allows true interface routing to be controlled from the command line.. you can now do: route add default -interface ppp0 even if you have no clue what the address at the other end is.. this is part of a set of changes that allow true "unnumbered links" such as netcom run between their sites.. In practice you should assign the address from one of your ethernet interfaces to the local side of the P2P link so that IP doesn't say that the packet comes from 255.255.255.255, but there is no need whatsoever to assign an address of any kind to the remote end of the link.. useful for frame relay links etc also.
* Submitted by: archie@whistle.comjulian1996-07-231-2/+3
| | | | slight cleanups on yesterday's patches
* Submitted by: archie@whistle.comjulian1996-07-231-3/+3
| | | | appletalk cleanups
* changes to allow route to manipulate appletalk routes.julian1996-07-093-3/+61
|
* Update route(8) to print out current meanings of rt_flags RTF_* bits.wollman1996-05-081-4/+10
|
* Do not install the now unsupported netns and netisompp1996-04-081-1/+1
| | | | | related man pages. Comment out cross references to those man pages from other man pages.
* Fix route to check if inet_addr and inet_network return INADDR_NONE,mpp1996-02-171-3/+3
| | | | instead of -1 which is never returned by those routines.
* XNS sort-of-support is no more.wollman1996-02-131-1/+27
|
* Another round of man page cleanups.mpp1996-02-121-2/+3
| | | | Down to only about 100 items left to cleanup! :-)
* Remove support for OSI networking in user-land (#ifdef OSI aor CCITT)wollman1996-02-062-3/+40
| | | | | in preparation for its removal from the kernel source tree. NB: because a function was deleted, libc is now at version 3.0 (was 2.2 previously).
* Route calls the errx routine with the wrong number of argumentsmpp1996-01-201-2/+2
| | | | when printing "route: bad address: ...".
* Clean up GCC warnings, condition out some compatibility cruft, add $Id$.wollman1996-01-021-61/+51
| | | | Pointed-out-by: jmb
* Missing 'break' after setting interface route flag was causing interfacepst1994-09-151-0/+1
| | | | routes to not be properly marked as static.
* Make keywords.h get properly built.jkh1994-08-141-1/+1
| | | | Submitted by: jkh
* Convert to our man installation style. Also fixed long-standing bugwollman1994-08-051-1/+3
| | | | | in `fastboot'/`fasthalt' in which the interpreter would hang around after `reboot' or `halt' is run, causing an irritating ``Killed'' message.
OpenPOWER on IntegriCloud