Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-05-01 | The -d flag should be a no-op in monitor mode since it does not modify | Florian Obser | |
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 | |||
2018-05-01 | Sync p_rttables() to netstat(1) version. Pointed out by claudio and | Florian Obser | |
mpi. Remaining differences are pledge and priority handling which only route(8) has. While here switch flushroutes to get_sysctl() function. OK benno | |||
2018-04-30 | * simplify code by no longer calling getnetbyname(3) | Ingo Schwarze | |
* avoid double lookups for unresolvable names without -net * more fitting error message for unresolvable names after -net OK florian@ | |||
2018-04-30 | tableid is either initialized to the current routing table or to the | Florian Obser | |
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 | |||
2018-04-30 | No need to get the whole routing table from the kernel if we are | Florian Obser | |
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 | |||
2018-04-30 | Fix route monitor -AF filter. | Florian Obser | |
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 | |||
2018-04-28 | remove references to /etc/networks; reminded by jmc@ | Ingo Schwarze | |
2018-04-28 | Improve / simplify pledges. | Florian Obser | |
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 | |||
2018-01-16 | Recycle IFF_NOTRAILERS into IFF_STATICARP and document ownerhsip | Martin Pieuchot | |
of IFF* flags. inputs from jmc@, ok bluhm@, visa@ | |||
2017-10-18 | Typo, from Hiltjo Posthuma. | Martin Pieuchot | |
2017-10-17 | Do not print an extra line if the 'get' command succeeds. | Martin Pieuchot | |
Fix a regression introduced in previous. | |||
2017-10-16 | Print the correct message and return an error code when no route entry | Martin Pieuchot | |
matches the corresponding RTM_GET request. Based on a submission from Julien Dhaille, ok bluhm@ | |||
2017-09-06 | backout previous diff: | Sebastian Benoit | |
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 | |||
2017-08-11 | new sentence, new line; | Jason McIntyre | |
2017-08-10 | document use of del as short form for delete, from jca | Sebastian Benoit | |
ok schwarze@ | |||
2017-08-10 | autodetect AF when setting inet6 default route | Sebastian Benoit | |
From Denis Fondras, thanks! ok phessler@ bluhm@ | |||
2017-08-10 | allow "del" in addition to "delete" | Sebastian Benoit | |
from Denis Fondras, positive feedback from sthen@ and deraadt@ ok jca@ | |||
2017-07-10 | zap depend ghost. | Marc Espie | |
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@ | |||
2017-06-12 | destroy lint remnants. | Marc Espie | |
okay millert@ deraadt@ | |||
2017-03-23 | Fix printf() incantation for non-NULL terminated string. | Kenneth R Westerback | |
Pointed out by florian@. ok bluhm@ | |||
2017-03-21 | getnameinfo errors should go to stderr & should print what's going on. | Florian Obser | |
Pointed out by & ok bluhm While here print prefixlen with %u, pointed out by bluhm, too. | |||
2017-03-20 | show inet6 proposals in route monitor | Florian Obser | |
fine with krw@ | |||
2017-03-02 | Implement a new routing message RTM_PROPOSAL that communicates | Kenneth R Westerback | |
information that can be used to configure an interface and related network components. ok bluhm@, ok for various older versions mpi@ florian@ claudio@ | |||
2017-01-23 | Zap some bad whitespace. | Kenneth R Westerback | |
2017-01-19 | add hooks so we can query the current state of a BFD session | Peter Hessler | |
bfd session details are visible with "route -n get 192.0.2.1 -bfd" OK mpi@ deraadt@ claudio@ | |||
2017-01-17 | In monitor mode, also print the interface mtu of RTM_IFINFO messages. | Jeremie Courreges-Anglas | |
ok deraadt@ millert@ mpi@ | |||
2017-01-01 | Hyphenate compound adjectives 'up-to-date', 'out-of-date' and 'well-known' | Theo Buehler | |
if they precede the noun and omit hyphens otherwise. ok tj | |||
2016-12-13 | Print the correct netmask instead of /0 when flushing routes to networks. | Martin Pieuchot | |
Issue reported by jsing@, ok stsp@ | |||
2016-09-24 | print a BFD route message. | Peter Hessler | |
protected with #ifdef BFD while we still figure out some of the mechanisms. OK mpi@ | |||
2016-09-15 | Add RTM_INVALIDATE as a route message, to keep the kernel and userland | Peter Hessler | |
lists in sync. OK mpi@ | |||
2016-09-05 | Print route labels in double quotes since they can contain spaces in the name. | Claudio Jeker | |
OK florian@ | |||
2016-09-04 | Make it possible to set the RTF_BFD flag in a change request. Also add a | Claudio Jeker | |
nobfd option to turn it off again. While here also print the fmask in the rtmsg dump so it is possible to figure out why something happens (or not). OK phessler@ | |||
2016-09-03 | Add userland parts for BFD. Can't work if you don't have it enabled in | Peter Hessler | |
the kernel. OK claudio@, henning@ | |||
2016-09-01 | Fix previous commit that displays all route flags with "route get". | Alexander Bluhm | |
The successor of octal 027 is 030 and not 028. Found by regress/sbin/route/rttest20.ok test. | |||
2016-09-01 | Display all route flags in "route get", "route show" and "netstat -r" | Alexander Bluhm | |
output. Sort them according to the RTF_... defines in route.h. OK claudio@ mpi@ | |||
2016-08-31 | Remove unused RTF_MASK route flag. | Alexander Bluhm | |
Requested by and OK mpi@ | |||
2016-08-26 | Add <time.h> for time() and ctime(); sort <net*/*.h> | Philip Guenther | |
ok deraadt@ | |||
2016-07-13 | Introduce RTF_MULTICAST and flag corresponding IPv6 routes as such | Martin Pieuchot | |
instead of abusing RTF_CLONING. Fix a leak reporeted by Aaron Riekenberg on misc@, ok sthen@ | |||
2016-07-09 | only print one error, not multiple misleading messages | Ted Unangst | |
2016-06-07 | per trending style, add continue to emtpy loop bodies. | Ted Unangst | |
ok mglocker | |||
2015-12-03 | Print the interface index which is part of the route msg header. | Claudio Jeker | |
mpi@ and benno@ agree | |||
2015-11-27 | After evaluating patches from Ricardo Mestre, it became obvious that | Sebastian Benoit | |
route needs pledge("stdio rpath dns") in all cases. Looks best to me deraadt@ | |||
2015-11-20 | Replace hardcoded "0" with SHUT_RD; from Ricardo Mestre | Jeremie Courreges-Anglas | |
2015-10-25 | route flush cannot pledge before sysctl for NET_RT_DUMP; defer the act. | Theo de Raadt | |
issue spotted by matthieu | |||
2015-10-24 | Removing xresolve from generating script has been forgotten. | Alexander Bluhm | |
OK mpi@ | |||
2015-10-23 | route has 3 code paths: monitor (listening on route socket); show | Theo de Raadt | |
(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 | |||
2015-09-11 | Remove RTF_XRESOLVE support. | Martin Pieuchot | |
2015-07-18 | Make all commands accepting the "-priority" switch recognize aliases | Martin Pieuchot | |
for common priorities. ok deraadt@, claudio@ | |||
2015-07-18 | On systems with a full routing table (550k+), we often want to be able to | Peter Hessler | |
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@ | |||
2015-05-17 | nope, ioctl has not been used for a while | Theo de Raadt | |