diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-14 10:09:31 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-10-14 10:09:31 +0000 |
commit | ba713922bfb5e418eb0ecbeff735a08d37bb330a (patch) | |
tree | 8fd2aecd29dc0d9dc84102584fbf69dff13dbe2e /sys/net/art.h | |
parent | f3f1a2b45b7111f8b56d40f4837ebb02ff6dccf3 (diff) |
Rewrite the logic around the dymanic array of routing tables to help
turning rtable_get(9) MP-safe.
Use only one per-AF array, as suggested by claudio@, pointing to an
array of pointers to the routing table heads.
Routing tables are now allocated/initialized per-AF. This will let
us allocate routing table on-demand instead of always having an
AF_INET, AF_MPLS and AF_INET table as soon as a new rtableID is used.
This also get rid of the "void ***" madness.
ok dlg@, jmatthew@
Diffstat (limited to 'sys/net/art.h')
-rw-r--r-- | sys/net/art.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/art.h b/sys/net/art.h index 0c97e96ef84..d433d4751c6 100644 --- a/sys/net/art.h +++ b/sys/net/art.h @@ -1,4 +1,4 @@ -/* $OpenBSD: art.h,v 1.3 2015/10/07 10:50:35 mpi Exp $ */ +/* $OpenBSD: art.h,v 1.4 2015/10/14 10:09:30 mpi Exp $ */ /* * Copyright (c) 2015 Martin Pieuchot @@ -50,7 +50,7 @@ struct art_node { }; void art_init(void); -struct art_root *art_attach(unsigned int, int); +struct art_root *art_alloc(unsigned int, int); struct art_node *art_insert(struct art_root *, struct art_node *, uint8_t *, int); struct art_node *art_delete(struct art_root *, struct art_node *, uint8_t *, |