bpf.c (144198) | bpf.c (144389) |
---|---|
1/*- 2 * Copyright (c) 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from the Stanford/CMU enet packet filter, 6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed 7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 8 * Berkeley Laboratory. --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)bpf.c 8.4 (Berkeley) 1/9/95 35 * | 1/*- 2 * Copyright (c) 1990, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from the Stanford/CMU enet packet filter, 6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed 7 * to Berkeley by Steven McCanne and Van Jacobson both of Lawrence 8 * Berkeley Laboratory. --- 19 unchanged lines hidden (view full) --- 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)bpf.c 8.4 (Berkeley) 1/9/95 35 * |
36 * $FreeBSD: head/sys/net/bpf.c 144198 2005-03-27 23:16:17Z green $ | 36 * $FreeBSD: head/sys/net/bpf.c 144389 2005-03-31 12:19:44Z phk $ |
37 */ 38 39#include "opt_bpf.h" 40#include "opt_mac.h" 41#include "opt_netgraph.h" 42 43#include <sys/types.h> 44#include <sys/param.h> --- 1555 unchanged lines hidden (view full) --- 1600 int u; 1601 1602 if (*dev != NULL) 1603 return; 1604 if (dev_stdclone(name, NULL, "bpf", &u) != 1) 1605 return; 1606 *dev = make_dev(&bpf_cdevsw, unit2minor(u), UID_ROOT, GID_WHEEL, 0600, 1607 "bpf%d", u); | 37 */ 38 39#include "opt_bpf.h" 40#include "opt_mac.h" 41#include "opt_netgraph.h" 42 43#include <sys/types.h> 44#include <sys/param.h> --- 1555 unchanged lines hidden (view full) --- 1600 int u; 1601 1602 if (*dev != NULL) 1603 return; 1604 if (dev_stdclone(name, NULL, "bpf", &u) != 1) 1605 return; 1606 *dev = make_dev(&bpf_cdevsw, unit2minor(u), UID_ROOT, GID_WHEEL, 0600, 1607 "bpf%d", u); |
1608 dev_ref(*dev); |
|
1608 (*dev)->si_flags |= SI_CHEAPCLONE; 1609 return; 1610} 1611 1612static void 1613bpf_drvinit(unused) 1614 void *unused; 1615{ --- 80 unchanged lines hidden --- | 1609 (*dev)->si_flags |= SI_CHEAPCLONE; 1610 return; 1611} 1612 1613static void 1614bpf_drvinit(unused) 1615 void *unused; 1616{ --- 80 unchanged lines hidden --- |