1*6ffff4f2Sthorpej /* $NetBSD: netcan_component.c,v 1.5 2022/09/03 02:48:00 thorpej Exp $ */
26e4cb2b9Sbouyer
36e4cb2b9Sbouyer /*
46e4cb2b9Sbouyer * Copyright (c) 2010 Antti Kantee. All Rights Reserved.
56e4cb2b9Sbouyer *
66e4cb2b9Sbouyer * Redistribution and use in source and binary forms, with or without
76e4cb2b9Sbouyer * modification, are permitted provided that the following conditions
86e4cb2b9Sbouyer * are met:
96e4cb2b9Sbouyer * 1. Redistributions of source code must retain the above copyright
106e4cb2b9Sbouyer * notice, this list of conditions and the following disclaimer.
116e4cb2b9Sbouyer * 2. Redistributions in binary form must reproduce the above copyright
126e4cb2b9Sbouyer * notice, this list of conditions and the following disclaimer in the
136e4cb2b9Sbouyer * documentation and/or other materials provided with the distribution.
146e4cb2b9Sbouyer *
156e4cb2b9Sbouyer * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
166e4cb2b9Sbouyer * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
176e4cb2b9Sbouyer * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
186e4cb2b9Sbouyer * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
196e4cb2b9Sbouyer * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
206e4cb2b9Sbouyer * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
216e4cb2b9Sbouyer * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
226e4cb2b9Sbouyer * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
236e4cb2b9Sbouyer * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
246e4cb2b9Sbouyer * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
256e4cb2b9Sbouyer * SUCH DAMAGE.
266e4cb2b9Sbouyer */
276e4cb2b9Sbouyer
286e4cb2b9Sbouyer #include <sys/cdefs.h>
29*6ffff4f2Sthorpej __KERNEL_RCSID(0, "$NetBSD: netcan_component.c,v 1.5 2022/09/03 02:48:00 thorpej Exp $");
306e4cb2b9Sbouyer
316e4cb2b9Sbouyer #include <sys/param.h>
326e4cb2b9Sbouyer #include <sys/domain.h>
336e4cb2b9Sbouyer #include <sys/protosw.h>
346e4cb2b9Sbouyer
356e4cb2b9Sbouyer #include <rump-sys/kern.h>
366e4cb2b9Sbouyer #include <rump-sys/net.h>
376e4cb2b9Sbouyer #include <netcan/can_var.h>
386e4cb2b9Sbouyer
RUMP_COMPONENT(RUMP_COMPONENT_NET)396e4cb2b9Sbouyer RUMP_COMPONENT(RUMP_COMPONENT_NET)
406e4cb2b9Sbouyer {
416e4cb2b9Sbouyer extern struct domain candomain;
426e4cb2b9Sbouyer
436e4cb2b9Sbouyer domain_attach(&candomain);
446e4cb2b9Sbouyer }
45