Age | Commit message (Collapse) | Author |
|
ifconfig(8) shows in its display of interface information.
ok bluhm@
|
|
where the "wrong" #define was used.
ok dlg@
|
|
Original diff from phessler@. Many suggestions and tweaks from
claudio@, stsp@, anton@.
ok claudio@ stsp@ anton@ phessler@
|
|
if we ask for AF_INET6.
OK kn, deraadt
|
|
diff from asou at soum.co.jp
ok claudio kn
|
|
beyonds the integer width results undefined behavior in C spec.
Actually the count is masked by 0x1f on amd64. Found by asou at
soum.co.jp
ok claudio kn schwarze
|
|
a bare dot-notation IP address by counting trailing zero octets.
Instead, assume -host when neither -net nor -netmask nor -prefixlen is
given. Error out when -net is requested but no netmask is specified.
This removes the last use of the IN_CLASS* macros from this program.
OK claudio@ kn@, and many agreed with the general direction during g2k18.
|
|
This removes any logic that implies IPv6 destination host addresses to be
/64 subnets so they are taken as is.
RFC 3587 deprecated this in 2003 and our manual page actually states:
The route is assumed to be to a network if any of the following apply to
destination:
* [...]
* it is an IPv6 address with a â/XXâ suffix (where XX is the number of
bits in the network portion of the address and is less than 128)
* [...]
If destination is a valid IP address or host name, it is presumed to be a
route to a host.
Stripping relevant code from `inet6_makenetandmask()' left the function as
dummy wrapper around `prefixlen()', so zap it completely.
Discussed with and positive feedback from many, OK benno henning
|
|
|
|
the route filter to set RTABLE_ANY. Previously only the routing
table/rdomain of the route process was displayed (that being the
kernel default).
ok kn@ claudio@ and henning@
|
|
OK phessler@ claudio@ benno@ kn@
"steh' nicht rum, committe das" henning@
|
|
Make rtable(4) usage documentation consistent with other programs.
This is to have `man -k ar~rtable' show the full list without having to
look for other variations of the same argument type.
OK bluhm
|
|
OK phessler, benno, claudio
|
|
|
|
Since the address string comes last, `-prefixlen 56 2001:db8::' silently
installs a route for /64 since that's the currently implied prefix length.
The manual page already states that these options must follow the
destination parameter in order to have any effect.
Discussed at length with many
OK benno sthen bluhm jca
|
|
Don't say that route(8) is mostly useful to set up a default route,
which is almost a lie. What's more, I'm not sure new users struggling
with route(8) should be pointed to ripd(8) (sic) or bgpd(8) as
a solution to their problems. ok benno@ kn@
|
|
ok tb@, sthen@
|
|
OK mpi henning blum
|
|
OK bluhm deraadt jca
|
|
the routing table.
However, if -d is provided route monitor lists all interfaces and
their associated addresses and exits. This is confusing, unexpected
and no longer needed (if ever).
Make -d a proper no-op for route monitor and get rid of the interfaces
function which didn't use the correct sysctl idiom anyway.
OK benno
|
|
mpi.
Remaining differences are pledge and priority handling which only
route(8) has.
While here switch flushroutes to get_sysctl() function.
OK benno
|
|
* avoid double lookups for unresolvable names without -net
* more fitting error message for unresolvable names after -net
OK florian@
|
|
one specified by the T flag. No need to pass a flag around if the
tableid is valid. It always is.
This code is now in sync between flushroutes() and p_rttables().
OK benno, no objection claudio
|
|
filtering by address family and / or priority; similar to what
p_rttables() is doing.
(At the time of writing we need to copy about 150MB for the whole
table on a router that is in the default free zone).
OK benno
|
|
While here make and to see that this is correct and not touching any
global state make af a local variable and pass it around.
Input & OK benno
|
|
|
|
1) after schwarze@'s rampage (thanks!) we can drop rpath since asr is no
longer opening /etc/networks behind our back
2) we have the "route" pledge for the NET_RT_DUMP sysctl so we can
pledge earlier in main; flushroutes() and p_rttables() now tighten the
pledge instead of being the first pledge
3) the pledge in monitor() was just a repeat of the main() pledge, it
can go.
OK schwarze, deraadt
|
|
of IFF* flags.
inputs from jmc@, ok bluhm@, visa@
|
|
|
|
Fix a regression introduced in previous.
|
|
matches the corresponding RTM_GET request.
Based on a submission from Julien Dhaille, ok bluhm@
|
|
autodetect AF when setting inet6 default route
From Denis Fondras, thanks!
ok phessler@ bluhm@
it breaks with ipv6 link-local routes, e.g.
/sbin/route -inet6 default -ifp pppoe0 fe80::%pppoe0
found by jmc@
ok florian
|
|
|
|
ok schwarze@
|
|
From Denis Fondras, thanks!
ok phessler@ bluhm@
|
|
from Denis Fondras, positive feedback from sthen@ and deraadt@
ok jca@
|
|
add a comment explaining why keywords.h is in the source tree even though
it's exactly what keywords.sh generates, so that people don't try adding
the generating rule again.
okay millert@
|
|
okay millert@ deraadt@
|
|
Pointed out by florian@.
ok bluhm@
|
|
Pointed out by & ok bluhm
While here print prefixlen with %u, pointed out by bluhm, too.
|
|
fine with krw@
|
|
information that can be used to configure an interface and
related network components.
ok bluhm@, ok for various older versions mpi@ florian@ claudio@
|
|
|
|
bfd session details are visible with "route -n get 192.0.2.1 -bfd"
OK mpi@ deraadt@ claudio@
|
|
ok deraadt@ millert@ mpi@
|
|
if they precede the noun and omit hyphens otherwise.
ok tj
|
|
Issue reported by jsing@, ok stsp@
|
|
protected with #ifdef BFD while we still figure out some of the
mechanisms.
OK mpi@
|
|
lists in sync.
OK mpi@
|
|
OK florian@
|