summaryrefslogtreecommitdiff
path: root/sys/netmpls/mpls_proto.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-04 08:43:40 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-09-04 08:43:40 +0000
commit9afff0521bd3161bdbce6695ee2c75154d7858d1 (patch)
treecdb4de2031848165d23d257d661869003247ecc6 /sys/netmpls/mpls_proto.c
parent3329517806969b15b0dbe4ca265bbe649c3aef4a (diff)
Make every subsystem using a radix tree call rn_init() and pass the
length of the key as argument. This way every consumer of the radix tree has a chance to explicitly initialize the shared data structures and no longer rely on another subsystem to do the initialization. As a bonus ``dom_maxrtkey'' is no longer used an die. ART kernels should now be fully usable because pf(4) and IPSEC properly initialized the radix tree. ok chris@, reyk@
Diffstat (limited to 'sys/netmpls/mpls_proto.c')
-rw-r--r--sys/netmpls/mpls_proto.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netmpls/mpls_proto.c b/sys/netmpls/mpls_proto.c
index 9d49e797e7c..1bba66cf7d4 100644
--- a/sys/netmpls/mpls_proto.c
+++ b/sys/netmpls/mpls_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_proto.c,v 1.11 2015/08/30 10:39:16 mpi Exp $ */
+/* $OpenBSD: mpls_proto.c,v 1.12 2015/09/04 08:43:39 mpi Exp $ */
/*
* Copyright (C) 1999, 2000 and 2001 AYAME Project, WIDE Project.
@@ -69,6 +69,5 @@ struct domain mplsdomain = {
mplssw,
&mplssw[nitems(mplssw)],
rtable_attach,
- offsetof(struct sockaddr_mpls, smpls_label) << 3,
- sizeof(struct sockaddr_mpls)
+ offsetof(struct sockaddr_mpls, smpls_label) << 3
};