1*1248928aSmartijn /* $OpenBSD: mib.c,v 1.3 2020/08/03 14:45:54 martijn Exp $ */
2442e4f4fSmartijn
3442e4f4fSmartijn /*
4442e4f4fSmartijn * Copyright (c) 2012 Joel Knight <joel@openbsd.org>
5442e4f4fSmartijn * Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
6442e4f4fSmartijn *
7442e4f4fSmartijn * Permission to use, copy, modify, and distribute this software for any
8442e4f4fSmartijn * purpose with or without fee is hereby granted, provided that the above
9442e4f4fSmartijn * copyright notice and this permission notice appear in all copies.
10442e4f4fSmartijn *
11442e4f4fSmartijn * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12442e4f4fSmartijn * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13442e4f4fSmartijn * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14442e4f4fSmartijn * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15442e4f4fSmartijn * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16442e4f4fSmartijn * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17442e4f4fSmartijn * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18442e4f4fSmartijn */
19442e4f4fSmartijn
20442e4f4fSmartijn
21442e4f4fSmartijn #include <sys/tree.h>
22442e4f4fSmartijn #include <sys/types.h>
23442e4f4fSmartijn #include <sys/queue.h>
24442e4f4fSmartijn
25442e4f4fSmartijn #include "ber.h"
26442e4f4fSmartijn #include "mib.h"
27442e4f4fSmartijn #include "smi.h"
28442e4f4fSmartijn
29442e4f4fSmartijn static struct oid mib_tree[] = MIB_TREE;
30*1248928aSmartijn static struct textconv textconv_tree[] = TEXTCONV_TREE;
31442e4f4fSmartijn
32442e4f4fSmartijn void
mib_init(void)33442e4f4fSmartijn mib_init(void)
34442e4f4fSmartijn {
35442e4f4fSmartijn smi_mibtree(mib_tree);
36*1248928aSmartijn smi_textconvtree(textconv_tree);
37442e4f4fSmartijn }
38