summaryrefslogtreecommitdiffstats
path: root/sbin/route
Commit message (Collapse)AuthorAgeFilesLines
...
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).ru2001-07-061-3/+3
|
* Allow route(8) to create "proxy only" published ARP entries.ru2001-06-123-5/+24
| | | | | PR: bin/12357 Submitted by: Craig Leres <leres@ee.lbl.gov>
* Fixed the -iface breakage introduced with the latest KAME mergeru2001-06-121-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in revision 1.48. It is pretty valid and often feasible to use a non-point-to-point interface as the gateway. One might, for example, use this to route some hosts through an ARP on a local interface, without having to assign an additional IP address: Script started on Tue Jun 12 16:16:09 2001 # ifconfig rl0 inet rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 inet 192.168.4.115 netmask 0xffffff00 broadcast 192.168.4.255 # netstat -arn -finet | grep -w rl0 192.168.4 link#1 UC 3 0 rl0 => 192.168.4.65 0:d0:b7:16:9c:c6 UHLW 1 0 rl0 1197 # route add -net 192.168.100 -iface rl0 add net 192.168.100: gateway rl0 # ping 192.168.100.1 PING 192.168.100.1 (192.168.100.1): 56 data bytes 64 bytes from 192.168.100.1: icmp_seq=0 ttl=255 time=0.551 ms 64 bytes from 192.168.100.1: icmp_seq=1 ttl=255 time=0.268 ms ^C --- 192.168.100.1 ping statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.268/0.410/0.551/0.142 ms # netstat -arn -finet | grep -w rl0 192.168.4 link#1 UC 3 0 rl0 => 192.168.4.65 0:d0:b7:16:9c:c6 UHLW 1 0 rl0 1165 192.168.100 link#1 UCSc 1 0 rl0 => 192.168.100.1 0:d0:b7:16:9c:c6 UHLW 1 4 rl0 1192 Script done on Tue Jun 12 16:17:12 2001
* Sync with recent KAME.ume2001-06-111-120/+114
| | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks
* When changing an indirect route, kernel routing code allocatesru2001-06-082-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Change the host/bits syntax introduced in route.c,v 1.24 to theru2001-06-082-9/+8
| | | | | | | net/bits syntax, for consistency with netstat(1) in particular. OK'ed by: phk MFC after: 1 week
* - Exit 1 if "add", "change", or "delete" operation fails.ru2001-06-072-10/+12
| | | | | | | | | | | | 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
* mdoc(7) police: properly use a -diag list in the DIAGNOSTICS section.dd2001-04-131-7/+7
| | | | Reviewed by: ru
* - Backout botched attempt to introduce MANSECT feature.ru2001-03-261-0/+1
| | | | - MAN[1-9] -> MAN.
* Set the default manual section for sbin/ to 8.ru2001-03-201-1/+0
|
* mdoc(7) police: Change -filled displays (which just happenru2001-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.
* Add a couple of newlines in the output from route monitorphk2001-01-151-2/+4
|
* Add `_PATH_DEVZERO'.obrien2000-12-091-1/+2
| | | | Use _PATH_* where where possible.
* Typo fix: forgot -> forget.dannyboy2000-11-261-1/+1
| | | | | PR: 23113 Submitted by: Jimmy Olgeni <olgeni@uli.it>
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-4/+7
|
* - Documented the host/bits syntax for destination argument.ru2000-09-291-3/+13
| | | | - Documented that netmask could be specified with third argument.
* Interpret the address argument as network-type address for `destination'ru2000-09-291-13/+12
| | | | | | argument only. Before that, the `route add default gateway' first tried the `gateway' as network address and passed its name to getnetbyname(3), which in the BIND resolution case does the T_PTR lookup on that name.
* Fixed the case where argument of 0.0.0.0/8 would match the default route.ru2000-09-291-4/+4
|
* 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.
OpenPOWER on IntegriCloud