summaryrefslogtreecommitdiff
path: root/sys/net/pfkey.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-07 10:50:36 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-10-07 10:50:36 +0000
commit94ece62a44e8baa8868e570371090ecd63084b6e (patch)
treebc5f3754e4a1460f0bda7034e456eee072b9372b /sys/net/pfkey.c
parent68c2f66c0d155e4cfba0392dd4da5e4c3ae9db46 (diff)
Initialize the routing table before domains.
The routing table is not an optional component of the network stack and initializing it inside the "routing domain" requires some ugly introspection in the domain interface. This put the rtable* layer at the same level of the if* level. These two subsystem are organized around the two global data structure used in the network stack: - the global &ifnet list, to be used in process context only, and - the routing table which can be read in interrupt context. This change makes the rtable_* layer domain-aware and extends the "struct domain" such that INET, INET6 and MPLS can specify the length of the binary key used in lookups. This allows us to keep, or move towards, AF-free route and rtable layers. While here stop the madness and pass the size of the maximum key length in *byte* to rn_inithead0(). ok claudio@, mikeb@
Diffstat (limited to 'sys/net/pfkey.c')
-rw-r--r--sys/net/pfkey.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/pfkey.c b/sys/net/pfkey.c
index 7428983e595..3e9b1dd9f8f 100644
--- a/sys/net/pfkey.c
+++ b/sys/net/pfkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfkey.c,v 1.27 2015/09/04 08:43:39 mpi Exp $ */
+/* $OpenBSD: pfkey.c,v 1.28 2015/10/07 10:50:35 mpi Exp $ */
/*
* @(#)COPYRIGHT 1.1 (NRL) 17 January 1995
@@ -269,8 +269,6 @@ struct domain pfkeydomain = {
NULL, /* dispose */
NULL, /* protosw */
NULL, /* protoswNPROTOSW */
- NULL, /* dom_rtattach */
- 16 /* rtoffset */
};
static struct protosw pfkey_protosw_template = {