xref: /netbsd-src/sys/rump/net/lib/libsockin/sockin_component.c (revision 6bb51422881aa32822c80737814503e72f496e36)
1*6bb51422Spooka /*	$NetBSD: sockin_component.c,v 1.3 2016/01/26 23:12:19 pooka Exp $	*/
2ab22d875Spooka 
3ab22d875Spooka /*
4ab22d875Spooka  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
5ab22d875Spooka  *
6ab22d875Spooka  * Development of this software was supported by The Nokia Foundation
7ab22d875Spooka  *
8ab22d875Spooka  * Redistribution and use in source and binary forms, with or without
9ab22d875Spooka  * modification, are permitted provided that the following conditions
10ab22d875Spooka  * are met:
11ab22d875Spooka  * 1. Redistributions of source code must retain the above copyright
12ab22d875Spooka  *    notice, this list of conditions and the following disclaimer.
13ab22d875Spooka  * 2. Redistributions in binary form must reproduce the above copyright
14ab22d875Spooka  *    notice, this list of conditions and the following disclaimer in the
15ab22d875Spooka  *    documentation and/or other materials provided with the distribution.
16ab22d875Spooka  *
17ab22d875Spooka  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
18ab22d875Spooka  * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19ab22d875Spooka  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20ab22d875Spooka  * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21ab22d875Spooka  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22ab22d875Spooka  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
23ab22d875Spooka  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24ab22d875Spooka  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25ab22d875Spooka  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26ab22d875Spooka  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27ab22d875Spooka  * SUCH DAMAGE.
28ab22d875Spooka  */
29ab22d875Spooka 
30ab22d875Spooka #include <sys/cdefs.h>
31*6bb51422Spooka __KERNEL_RCSID(0, "$NetBSD: sockin_component.c,v 1.3 2016/01/26 23:12:19 pooka Exp $");
32ab22d875Spooka 
33ab22d875Spooka #include <sys/param.h>
34ab22d875Spooka #include <sys/domain.h>
35ab22d875Spooka #include <sys/protosw.h>
36ab22d875Spooka 
37*6bb51422Spooka #include <rump-sys/kern.h>
38ab22d875Spooka 
RUMP_COMPONENT(RUMP_COMPONENT_NET)39ab22d875Spooka RUMP_COMPONENT(RUMP_COMPONENT_NET)
40ab22d875Spooka {
41ab22d875Spooka 	extern struct domain sockindomain;
42ab22d875Spooka 	extern struct domain sockin6domain;
43ab22d875Spooka 
44b41a4e16Spooka 	domain_attach(&sockindomain);
45b41a4e16Spooka 	domain_attach(&sockin6domain);
46ab22d875Spooka }
47