Deleted Added
full compact
bpf.c (130585) bpf.c (130640)
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 130585 2004-06-16 09:47:26Z phk $
36 * $FreeBSD: head/sys/net/bpf.c 130640 2004-06-17 17:16:53Z 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>

--- 1528 unchanged lines hidden (view full) ---

1573bpf_clone(arg, name, namelen, dev)
1574 void *arg;
1575 char *name;
1576 int namelen;
1577 struct cdev **dev;
1578{
1579 int u;
1580
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>

--- 1528 unchanged lines hidden (view full) ---

1573bpf_clone(arg, name, namelen, dev)
1574 void *arg;
1575 char *name;
1576 int namelen;
1577 struct cdev **dev;
1578{
1579 int u;
1580
1581 if (*dev != NODEV)
1581 if (*dev != NULL)
1582 return;
1583 if (dev_stdclone(name, NULL, "bpf", &u) != 1)
1584 return;
1585 *dev = make_dev(&bpf_cdevsw, unit2minor(u), UID_ROOT, GID_WHEEL, 0600,
1586 "bpf%d", u);
1587 (*dev)->si_flags |= SI_CHEAPCLONE;
1588 return;
1589}

--- 84 unchanged lines hidden ---
1582 return;
1583 if (dev_stdclone(name, NULL, "bpf", &u) != 1)
1584 return;
1585 *dev = make_dev(&bpf_cdevsw, unit2minor(u), UID_ROOT, GID_WHEEL, 0600,
1586 "bpf%d", u);
1587 (*dev)->si_flags |= SI_CHEAPCLONE;
1588 return;
1589}

--- 84 unchanged lines hidden ---