1/*
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 17 unchanged lines hidden (view full) ---
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)if.c 8.5 (Berkeley) 1/9/95
34 * $FreeBSD: head/sys/net/if.c 111815 2003-03-03 12:15:54Z phk $
35 */
36
37#include "opt_compat.h"
38#include "opt_inet6.h"
39#include "opt_inet.h"
40#include "opt_mac.h"
41
42#include <sys/param.h>
--- 83 unchanged lines hidden (view full) ---
126MALLOC_DEFINE(M_CLONE, "clone", "interface cloning framework");
127
128static d_open_t netopen;
129static d_close_t netclose;
130static d_ioctl_t netioctl;
131static d_kqfilter_t netkqfilter;
132
133static struct cdevsw net_cdevsw = {
134 .d_open = netopen,
135 .d_close = netclose,
136 .d_ioctl = netioctl,
137 .d_name = "net",
138 .d_maj = MAJOR_AUTO,
139 .d_flags = D_KQFILTER,
140 .d_kqfilter = netkqfilter,
141};
142
143static int
144netopen(dev_t dev, int flag, int mode, struct thread *td)
145{
146 return (0);
147}
148
--- 1860 unchanged lines hidden ---
2 * Copyright (c) 1980, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright
--- 17 unchanged lines hidden (view full) ---
26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)if.c 8.5 (Berkeley) 1/9/95
34 * $FreeBSD: head/sys/net/if.c 111815 2003-03-03 12:15:54Z phk $
35 */
36
37#include "opt_compat.h"
38#include "opt_inet6.h"
39#include "opt_inet.h"
40#include "opt_mac.h"
41
42#include <sys/param.h>
--- 83 unchanged lines hidden (view full) ---
126MALLOC_DEFINE(M_CLONE, "clone", "interface cloning framework");
127
128static d_open_t netopen;
129static d_close_t netclose;
130static d_ioctl_t netioctl;
131static d_kqfilter_t netkqfilter;
132
133static struct cdevsw net_cdevsw = {
134 .d_open = netopen,
135 .d_close = netclose,
136 .d_ioctl = netioctl,
137 .d_name = "net",
138 .d_maj = MAJOR_AUTO,
139 .d_flags = D_KQFILTER,
140 .d_kqfilter = netkqfilter,
141};
142
143static int
144netopen(dev_t dev, int flag, int mode, struct thread *td)
145{
146 return (0);
147}
148
--- 1860 unchanged lines hidden ---