if.c (111678) | if.c (111815) |
---|---|
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 | 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 111678 2003-02-28 18:04:42Z mux $ | 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 = { | 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 /* open */ netopen, 135 /* close */ netclose, 136 /* read */ noread, 137 /* write */ nowrite, 138 /* ioctl */ netioctl, 139 /* poll */ nopoll, 140 /* mmap */ nommap, 141 /* strategy */ nostrategy, 142 /* name */ "net", 143 /* maj */ MAJOR_AUTO, 144 /* dump */ nodump, 145 /* psize */ nopsize, 146 /* flags */ D_KQFILTER, 147 /* kqfilter */ netkqfilter, | 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, |
148}; 149 150static int 151netopen(dev_t dev, int flag, int mode, struct thread *td) 152{ 153 return (0); 154} 155 --- 1860 unchanged lines hidden --- | 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 --- |