Age | Commit message (Collapse) | Author |
|
It has been annoying me for too long that fully specififed GUAs
(2001:0db8:3333:4444:5555:6666:7777:8888) mess up alignment.
systat(1)'s netstat is the only view that has a big enough limit and thus
never misaligns.
Unify ndp(8), route(8) and netstat(1) views to always align nicely.
Feedback OK claudio
|
|
It is now set on all routes (and before it was never set).
OK tb@ anton@
|
|
ok denis
|
|
OK claudio
|
|
not initalized. If it is set assume that the scope was already recovered.
This is required to get rid of all this scope madness in the long run.
OK bluhm@ florian@
|
|
Based/previous work on an idea from deraadt@
Input from claudio@, djm@, deraadt@, sthen@
OK deraadt@
|
|
sufficient space to display v4 addresses cleanly, but which truncate v6
addresses. The -n flag on each already provides additional column width
for IPv6 addresses. Make this formatting the default.
OK phessler kn
|
|
diff from asou at soum.co.jp
ok claudio kn
|
|
OK bluhm deraadt jca
|
|
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
|
|
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
|
|
Issue reported by jsing@, ok stsp@
|
|
OK florian@
|
|
the kernel.
OK claudio@, henning@
|
|
output. Sort them according to the RTF_... defines in route.h.
OK claudio@ mpi@
|
|
instead of abusing RTF_CLONING.
Fix a leak reporeted by Aaron Riekenberg on misc@, ok sthen@
|
|
route needs pledge("stdio rpath dns") in all cases.
Looks best to me deraadt@
|
|
(sysctl and then print), change (getsocket, then read/write on that).
Refactor lightly and insert pledge "stdio rpath dns" in each case.
ok claudio benno phessler
|
|
|
|
look at the routes with a priority, or to display all routes that do not
have a specific priority (normally, don't show bgp).
We are intentionally not updating netstat -r yet, as we do not have a
good flag to use.
first version from, and OK benno@
|
|
that for us.
approach seems sound deraadt@
ok claudio@ mpi@ henning@ phessler@
|
|
OK deraadt@
|
|
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)
|
|
Nothing use them for the moment, but here is the plan:
Since a route lookup is always necessary to output a packet it makes
sense to store all the information regarding how the packet should be
sent in the routing entry. This will save us some expensive lookups
on address lists.
But once we have all the information about our addresses in the routing
table, we can even use it in the input path with the hope that the number
of lookups in the forwarding case can be reduce to one.
ok henning@, chris@
|
|
from there). OK sthen@ mpi@ jca@
|
|
a "signed vs unsigned in conditional" warning, and eliminate what
looks like an unintentional variable shadowing.
ok bluhm@
|
|
which want a "full" dump
ok dlg
|
|
|
|
no objection from mcbride@ krw@ markus@ deraadt@
|
|
|
|
route(8) will default to the process rtableid.
route -T 1 exec route add default 192.168.1.1
route -T 1 exec route -n show
These commands will now operate outmatically on rtable 1 and not on
rtable 0 as it was done before.
OK henning@
|
|
given label. No change to existing functionality.
ok henning@ claudio@
|
|
-v show" are called with the -v switch.
ok markus@
|
|
ok claudio@ michele@
|
|
|
|
OK michele@
|
|
a all zero mask. So check for this condition as well since else we read
garbage that comes after the netmask sockaddr (which is the IFP normaly).
Found by todd@, OK dlg@
|
|
from and ok claudio@
|
|
|
|
suggested by dlg@, ok claudio@, laurent@, blambert@
|
|
Kernel will do this now.
|
|
ok claudio@
|
|
Add support to route(8) for a new dummy operation to allow packets coming in
with a particular label to leave the MPLS cloud and join ipv4/ipv6 stack.
ok claudio@ laurent@
|
|
ok claudio@ laurent@
|
|
M and m were already taken. OK henning@
|
|
ok claudio@
|
|
and operations are now stored in rt_flags.
This also simplify a lot the syntax.
ok claudio@ laurent@
|
|
implied sizeof(struct rt_msghdr). Makes code more robust when userland and
kernel are out of sync.
|