#
1.16 |
|
29-Oct-2020 |
denis |
Add feature to force the selection of source IP address
Based/previous work on an idea from deraadt@ Input from claudio@, djm@, deraadt@, sthen@
OK deraadt@
|
Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
|
#
1.15 |
|
31-Aug-2019 |
bluhm |
The algorithm creating the routing addresses in route(8) and arp(6) were still not correct. While the values written to the kernel are fine, the bytes for padding were taken from memory after the sockaddr structs. In route(8) the union of sockaddrs can be made larger, so that the padding is taken from there. In arp(8) the size of the struct is known. Copy only the struct and advance over the padding. The memory has been zeroed before. Merge all address size fixes from arp(8) into ndp(8). OK claudio@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.14 |
|
01-May-2018 |
florian |
Sync p_rttables() to netstat(1) version. Pointed out by claudio and mpi.
Remaining differences are pledge and priority handling which only route(8) has.
While here switch flushroutes to get_sysctl() function. OK benno
|
#
1.13 |
|
30-Apr-2018 |
florian |
tableid is either initialized to the current routing table or to the 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
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.12 |
|
13-Dec-2016 |
mpi |
Print the correct netmask instead of /0 when flushing routes to networks.
Issue reported by jsing@, ok stsp@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.11 |
|
18-Jul-2015 |
phessler |
On systems with a full routing table (550k+), we often want to be able to 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@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.10 |
|
17-Apr-2014 |
claudio |
Sync show.c to what we have in netstat.c (at least steal some good idioms from there). OK sthen@ mpi@ jca@
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.9 |
|
11-Oct-2010 |
claudio |
Make route(8) use the ROUTE_TABLEFILTER and change the code so that 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@
|
#
1.8 |
|
21-Sep-2010 |
krw |
Add '-label' to specify that you only want to see routes having the given label. No change to existing functionality.
ok henning@ claudio@
|
Revision tags: OPENBSD_4_8_BASE
|
#
1.7 |
|
23-Mar-2010 |
claudio |
Print MPLS information in route -n get and do some cleanup in the show code. OK michele@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.6 |
|
16-Jun-2006 |
henning |
make route show work on secondary tables, using the just committed extension to the syctl NET_RT_DUMP interface, claudio ok
|
#
1.5 |
|
27-May-2006 |
claudio |
Kill unused Aflag support that sneeked in via netstat code.
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.4 |
|
30-Mar-2005 |
henning |
more bitrot bites the dust
|
Revision tags: OPENBSD_3_7_BASE
|
#
1.3 |
|
18-Feb-2005 |
jaredy |
ansi, knf, and other style nits; ok henning
|
#
1.2 |
|
22-Sep-2004 |
jaredy |
remove -S, -src, -srcmask, and other source routing stuff. ok henning
|
Revision tags: OPENBSD_3_6_BASE
|
#
1.1 |
|
12-Jun-2004 |
claudio |
Make route show output similar to netstat -r output. OK cedric@ millert@
|
#
1.15 |
|
31-Aug-2019 |
bluhm |
The algorithm creating the routing addresses in route(8) and arp(6) were still not correct. While the values written to the kernel are fine, the bytes for padding were taken from memory after the sockaddr structs. In route(8) the union of sockaddrs can be made larger, so that the padding is taken from there. In arp(8) the size of the struct is known. Copy only the struct and advance over the padding. The memory has been zeroed before. Merge all address size fixes from arp(8) into ndp(8). OK claudio@
|
Revision tags: OPENBSD_6_4_BASE OPENBSD_6_5_BASE
|
#
1.14 |
|
01-May-2018 |
florian |
Sync p_rttables() to netstat(1) version. Pointed out by claudio and mpi.
Remaining differences are pledge and priority handling which only route(8) has.
While here switch flushroutes to get_sysctl() function. OK benno
|
#
1.13 |
|
30-Apr-2018 |
florian |
tableid is either initialized to the current routing table or to the 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
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.12 |
|
13-Dec-2016 |
mpi |
Print the correct netmask instead of /0 when flushing routes to networks.
Issue reported by jsing@, ok stsp@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.11 |
|
18-Jul-2015 |
phessler |
On systems with a full routing table (550k+), we often want to be able to 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@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.10 |
|
17-Apr-2014 |
claudio |
Sync show.c to what we have in netstat.c (at least steal some good idioms from there). OK sthen@ mpi@ jca@
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.9 |
|
11-Oct-2010 |
claudio |
Make route(8) use the ROUTE_TABLEFILTER and change the code so that 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@
|
#
1.8 |
|
21-Sep-2010 |
krw |
Add '-label' to specify that you only want to see routes having the given label. No change to existing functionality.
ok henning@ claudio@
|
Revision tags: OPENBSD_4_8_BASE
|
#
1.7 |
|
23-Mar-2010 |
claudio |
Print MPLS information in route -n get and do some cleanup in the show code. OK michele@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.6 |
|
16-Jun-2006 |
henning |
make route show work on secondary tables, using the just committed extension to the syctl NET_RT_DUMP interface, claudio ok
|
#
1.5 |
|
27-May-2006 |
claudio |
Kill unused Aflag support that sneeked in via netstat code.
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.4 |
|
30-Mar-2005 |
henning |
more bitrot bites the dust
|
Revision tags: OPENBSD_3_7_BASE
|
#
1.3 |
|
18-Feb-2005 |
jaredy |
ansi, knf, and other style nits; ok henning
|
#
1.2 |
|
22-Sep-2004 |
jaredy |
remove -S, -src, -srcmask, and other source routing stuff. ok henning
|
Revision tags: OPENBSD_3_6_BASE
|
#
1.1 |
|
12-Jun-2004 |
claudio |
Make route show output similar to netstat -r output. OK cedric@ millert@
|
#
1.14 |
|
01-May-2018 |
florian |
Sync p_rttables() to netstat(1) version. Pointed out by claudio and mpi.
Remaining differences are pledge and priority handling which only route(8) has.
While here switch flushroutes to get_sysctl() function. OK benno
|
#
1.13 |
|
30-Apr-2018 |
florian |
tableid is either initialized to the current routing table or to the 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
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE
|
#
1.12 |
|
13-Dec-2016 |
mpi |
Print the correct netmask instead of /0 when flushing routes to networks.
Issue reported by jsing@, ok stsp@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.11 |
|
18-Jul-2015 |
phessler |
On systems with a full routing table (550k+), we often want to be able to 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@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.10 |
|
17-Apr-2014 |
claudio |
Sync show.c to what we have in netstat.c (at least steal some good idioms from there). OK sthen@ mpi@ jca@
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.9 |
|
11-Oct-2010 |
claudio |
Make route(8) use the ROUTE_TABLEFILTER and change the code so that 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@
|
#
1.8 |
|
21-Sep-2010 |
krw |
Add '-label' to specify that you only want to see routes having the given label. No change to existing functionality.
ok henning@ claudio@
|
Revision tags: OPENBSD_4_8_BASE
|
#
1.7 |
|
23-Mar-2010 |
claudio |
Print MPLS information in route -n get and do some cleanup in the show code. OK michele@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.6 |
|
16-Jun-2006 |
henning |
make route show work on secondary tables, using the just committed extension to the syctl NET_RT_DUMP interface, claudio ok
|
#
1.5 |
|
27-May-2006 |
claudio |
Kill unused Aflag support that sneeked in via netstat code.
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.4 |
|
30-Mar-2005 |
henning |
more bitrot bites the dust
|
Revision tags: OPENBSD_3_7_BASE
|
#
1.3 |
|
18-Feb-2005 |
jaredy |
ansi, knf, and other style nits; ok henning
|
#
1.2 |
|
22-Sep-2004 |
jaredy |
remove -S, -src, -srcmask, and other source routing stuff. ok henning
|
Revision tags: OPENBSD_3_6_BASE
|
#
1.1 |
|
12-Jun-2004 |
claudio |
Make route show output similar to netstat -r output. OK cedric@ millert@
|
Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
|
#
1.12 |
|
13-Dec-2016 |
mpi |
Print the correct netmask instead of /0 when flushing routes to networks.
Issue reported by jsing@, ok stsp@
|
Revision tags: OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
|
#
1.11 |
|
18-Jul-2015 |
phessler |
On systems with a full routing table (550k+), we often want to be able to 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@
|
Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE
|
#
1.10 |
|
17-Apr-2014 |
claudio |
Sync show.c to what we have in netstat.c (at least steal some good idioms from there). OK sthen@ mpi@ jca@
|
Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE
|
#
1.9 |
|
11-Oct-2010 |
claudio |
Make route(8) use the ROUTE_TABLEFILTER and change the code so that 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@
|
#
1.8 |
|
21-Sep-2010 |
krw |
Add '-label' to specify that you only want to see routes having the given label. No change to existing functionality.
ok henning@ claudio@
|
Revision tags: OPENBSD_4_8_BASE
|
#
1.7 |
|
23-Mar-2010 |
claudio |
Print MPLS information in route -n get and do some cleanup in the show code. OK michele@
|
Revision tags: OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
|
#
1.6 |
|
16-Jun-2006 |
henning |
make route show work on secondary tables, using the just committed extension to the syctl NET_RT_DUMP interface, claudio ok
|
#
1.5 |
|
27-May-2006 |
claudio |
Kill unused Aflag support that sneeked in via netstat code.
|
Revision tags: OPENBSD_3_8_BASE OPENBSD_3_9_BASE
|
#
1.4 |
|
30-Mar-2005 |
henning |
more bitrot bites the dust
|
Revision tags: OPENBSD_3_7_BASE
|
#
1.3 |
|
18-Feb-2005 |
jaredy |
ansi, knf, and other style nits; ok henning
|
#
1.2 |
|
22-Sep-2004 |
jaredy |
remove -S, -src, -srcmask, and other source routing stuff. ok henning
|
Revision tags: OPENBSD_3_6_BASE
|
#
1.1 |
|
12-Jun-2004 |
claudio |
Make route show output similar to netstat -r output. OK cedric@ millert@
|