History log of /openbsd-current/regress/sys/net/rtable/util.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.14 11-Nov-2023 anton

Cope with recent rt_hash() const changes.


Revision tags: OPENBSD_7_4_BASE
# 1.13 07-Jul-2023 bluhm

Implement route reference counting mockup poperly in rtable regress.
This allows to change rtable implementation in kernel without
breaking test.


Revision tags: OPENBSD_7_3_BASE
# 1.12 23-Nov-2022 kn

Remove unused struct ifnet's *if_afdata[] and struct domain's dom_if{at,de}tach()

Both made obsolete through struct ifnet's previous *if_nd addition.

IPv6 Neighbour Discovery handles per-interface data directly, nothing
else uses this generic domain API anymore.

Outside of _KERNEL, but nothing in base uses them, either.

OK bluhm mvs claudio


Revision tags: OPENBSD_7_2_BASE
# 1.11 29-Jun-2022 anton

cope with rtentry refcnt changes


# 1.10 19-Apr-2022 bluhm

Add dummy implementation for rt_timer_init(). Kernel sources are
build for regress and need that function now.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.9 13-Apr-2021 claudio

Unbreak rtable regress test. Define _KERNEL in some crucial spots so that
the include guard in rtsock.h is bypassed and critical defines like rtentry
show up. Also remove the old RADIX bits, rtable code is art only for a while.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 03-Dec-2018 bluhm

The field dom_rtkeylen has been removed from struct domain. Convert
to designated initializers and adapt the test. Fix white space.


Revision tags: OPENBSD_6_4_BASE
# 1.7 23-Jun-2018 denis

Fix a segfault when inserting the same prefix multiple times

OK bluhm@, jca@, kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.


# 1.13 07-Jul-2023 bluhm

Implement route reference counting mockup poperly in rtable regress.
This allows to change rtable implementation in kernel without
breaking test.


Revision tags: OPENBSD_7_3_BASE
# 1.12 23-Nov-2022 kn

Remove unused struct ifnet's *if_afdata[] and struct domain's dom_if{at,de}tach()

Both made obsolete through struct ifnet's previous *if_nd addition.

IPv6 Neighbour Discovery handles per-interface data directly, nothing
else uses this generic domain API anymore.

Outside of _KERNEL, but nothing in base uses them, either.

OK bluhm mvs claudio


Revision tags: OPENBSD_7_2_BASE
# 1.11 29-Jun-2022 anton

cope with rtentry refcnt changes


# 1.10 19-Apr-2022 bluhm

Add dummy implementation for rt_timer_init(). Kernel sources are
build for regress and need that function now.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.9 13-Apr-2021 claudio

Unbreak rtable regress test. Define _KERNEL in some crucial spots so that
the include guard in rtsock.h is bypassed and critical defines like rtentry
show up. Also remove the old RADIX bits, rtable code is art only for a while.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 03-Dec-2018 bluhm

The field dom_rtkeylen has been removed from struct domain. Convert
to designated initializers and adapt the test. Fix white space.


Revision tags: OPENBSD_6_4_BASE
# 1.7 23-Jun-2018 denis

Fix a segfault when inserting the same prefix multiple times

OK bluhm@, jca@, kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.


# 1.12 23-Nov-2022 kn

Remove unused struct ifnet's *if_afdata[] and struct domain's dom_if{at,de}tach()

Both made obsolete through struct ifnet's previous *if_nd addition.

IPv6 Neighbour Discovery handles per-interface data directly, nothing
else uses this generic domain API anymore.

Outside of _KERNEL, but nothing in base uses them, either.

OK bluhm mvs claudio


Revision tags: OPENBSD_7_2_BASE
# 1.11 29-Jun-2022 anton

cope with rtentry refcnt changes


# 1.10 19-Apr-2022 bluhm

Add dummy implementation for rt_timer_init(). Kernel sources are
build for regress and need that function now.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.9 13-Apr-2021 claudio

Unbreak rtable regress test. Define _KERNEL in some crucial spots so that
the include guard in rtsock.h is bypassed and critical defines like rtentry
show up. Also remove the old RADIX bits, rtable code is art only for a while.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 03-Dec-2018 bluhm

The field dom_rtkeylen has been removed from struct domain. Convert
to designated initializers and adapt the test. Fix white space.


Revision tags: OPENBSD_6_4_BASE
# 1.7 23-Jun-2018 denis

Fix a segfault when inserting the same prefix multiple times

OK bluhm@, jca@, kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.


# 1.11 29-Jun-2022 anton

cope with rtentry refcnt changes


# 1.10 19-Apr-2022 bluhm

Add dummy implementation for rt_timer_init(). Kernel sources are
build for regress and need that function now.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.9 13-Apr-2021 claudio

Unbreak rtable regress test. Define _KERNEL in some crucial spots so that
the include guard in rtsock.h is bypassed and critical defines like rtentry
show up. Also remove the old RADIX bits, rtable code is art only for a while.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 03-Dec-2018 bluhm

The field dom_rtkeylen has been removed from struct domain. Convert
to designated initializers and adapt the test. Fix white space.


Revision tags: OPENBSD_6_4_BASE
# 1.7 23-Jun-2018 denis

Fix a segfault when inserting the same prefix multiple times

OK bluhm@, jca@, kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.


# 1.10 19-Apr-2022 bluhm

Add dummy implementation for rt_timer_init(). Kernel sources are
build for regress and need that function now.


Revision tags: OPENBSD_6_9_BASE OPENBSD_7_0_BASE OPENBSD_7_1_BASE
# 1.9 13-Apr-2021 claudio

Unbreak rtable regress test. Define _KERNEL in some crucial spots so that
the include guard in rtsock.h is bypassed and critical defines like rtentry
show up. Also remove the old RADIX bits, rtable code is art only for a while.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 03-Dec-2018 bluhm

The field dom_rtkeylen has been removed from struct domain. Convert
to designated initializers and adapt the test. Fix white space.


Revision tags: OPENBSD_6_4_BASE
# 1.7 23-Jun-2018 denis

Fix a segfault when inserting the same prefix multiple times

OK bluhm@, jca@, kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.


# 1.9 13-Apr-2021 claudio

Unbreak rtable regress test. Define _KERNEL in some crucial spots so that
the include guard in rtsock.h is bypassed and critical defines like rtentry
show up. Also remove the old RADIX bits, rtable code is art only for a while.


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 03-Dec-2018 bluhm

The field dom_rtkeylen has been removed from struct domain. Convert
to designated initializers and adapt the test. Fix white space.


Revision tags: OPENBSD_6_4_BASE
# 1.7 23-Jun-2018 denis

Fix a segfault when inserting the same prefix multiple times

OK bluhm@, jca@, kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.


# 1.8 03-Dec-2018 bluhm

The field dom_rtkeylen has been removed from struct domain. Convert
to designated initializers and adapt the test. Fix white space.


Revision tags: OPENBSD_6_4_BASE
# 1.7 23-Jun-2018 denis

Fix a segfault when inserting the same prefix multiple times

OK bluhm@, jca@, kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.


# 1.7 23-Jun-2018 denis

Fix a segfault when inserting the same prefix multiple times

OK bluhm@, jca@, kn@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.


Revision tags: OPENBSD_6_2_BASE
# 1.6 27-Jul-2017 mpi

Compile and test MPATH code.


Revision tags: OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.5 24-Mar-2016 mpi

Remove #ifdef from code shared with the kernel, IPv6 is always enabled
in the tests.


# 1.4 23-Mar-2016 mpi

Assert that the mask to prefix length conversion is correct when
removing an entry.

While here print the corresponding error string when available if
rtable_* function fail.


Revision tags: OPENBSD_5_9_BASE
# 1.3 04-Dec-2015 mpi

Sync after rt_mask() removal.


# 1.2 03-Dec-2015 mpi

Sync to recent changes including SRP protection of rtable_get(), use
of a SRPL for the multipath list and rtable_delete() API change.


# 1.1 04-Nov-2015 mpi

Basic framework to test the rtable_* API directly from userland.

You can replace inet{,6}-fullfeed.txt with a dump of your fullfeed table
to really stress this test framework. I did not commit them because CVS
certainly doesn't like ~7M file.