| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Use _PATH_* where where possible.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
command.
This is a workaround for some kernel interface which can't treat sin6_scope_id,
yet.
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Obtained from: KAME Project
|
|
|
|
|
|
| |
This fix enables inet6 default route addition.
Suggested by: itojun
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
PR: 11823
Reviewed by: des
|
|
|
|
|
| |
returns -1. Correct use of .Nm. Spelling. Add rcsid and remove unused
#include.
|
|
|
|
| |
Submitted by: bde
|
|
|
|
|
| |
1) Correct strncpy usage
2) gethostbyaddr paranoia from Julian Assange
|
|
|
|
|
|
|
|
| |
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.)
|
| |
|
|
|
|
| |
route add -net 192.168.64.0/20 bla bla bla
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
(in <net/route.h>), then interpret them appropriately. This has
no effect until I commit the changes to multicast group
management (awaiting review).
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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..
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
slight cleanups on yesterday's patches
|
|
|
|
| |
appletalk cleanups
|
| |
|
| |
|
|
|
|
| |
instead of -1 which is never returned by those routines.
|
| |
|
|
|
|
|
| |
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).
|
|
|
|
| |
when printing "route: bad address: ...".
|
|
|
|
| |
Pointed-out-by: jmb
|
|
|
|
| |
routes to not be properly marked as static.
|
|
Note: XNSrouted and routed NOT imported here, they shall be imported with
usr.sbin.
|