1/*
2 * Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com>
3 * 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 * BASED ON:
27 * -------------------------------------------------------------------------
28 *
29 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
30 * Nottingham University 1987.
31 */
32
33/*
34 * $FreeBSD: head/sys/net/if_tap.c 111748 2003-03-02 16:54:40Z des $
35 * $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $
36 */
37
38#include "opt_inet.h"
39
40#include <sys/param.h>
41#include <sys/conf.h>
42#include <sys/filedesc.h>
--- 53 unchanged lines hidden (view full) ---
96static d_open_t tapopen;
97static d_close_t tapclose;
98static d_read_t tapread;
99static d_write_t tapwrite;
100static d_ioctl_t tapioctl;
101static d_poll_t tappoll;
102
103static struct cdevsw tap_cdevsw = {
104 /* open */ tapopen,
105 /* close */ tapclose,
106 /* read */ tapread,
107 /* write */ tapwrite,
108 /* ioctl */ tapioctl,
109 /* poll */ tappoll,
110 /* mmap */ nommap,
111 /* startegy */ nostrategy,
112 /* dev name */ CDEV_NAME,
113 /* dev major */ CDEV_MAJOR,
114 /* dump */ nodump,
115 /* psize */ nopsize,
116 /* flags */ 0,
117};
118
119static int tapdebug = 0; /* debug flag */
120static SLIST_HEAD(, tap_softc) taphead; /* first device */
121static udev_t tapbasedev = NOUDEV; /* base device */
122static struct rman tapdevunits[2]; /* device units */
123#define tapunits tapdevunits
124#define vmnetunits (tapdevunits + 1)
--- 798 unchanged lines hidden ---
2 * Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com>
3 * 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 * BASED ON:
27 * -------------------------------------------------------------------------
28 *
29 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
30 * Nottingham University 1987.
31 */
32
33/*
34 * $FreeBSD: head/sys/net/if_tap.c 111748 2003-03-02 16:54:40Z des $
35 * $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $
36 */
37
38#include "opt_inet.h"
39
40#include <sys/param.h>
41#include <sys/conf.h>
42#include <sys/filedesc.h>
--- 53 unchanged lines hidden (view full) ---
96static d_open_t tapopen;
97static d_close_t tapclose;
98static d_read_t tapread;
99static d_write_t tapwrite;
100static d_ioctl_t tapioctl;
101static d_poll_t tappoll;
102
103static struct cdevsw tap_cdevsw = {
104 /* open */ tapopen,
105 /* close */ tapclose,
106 /* read */ tapread,
107 /* write */ tapwrite,
108 /* ioctl */ tapioctl,
109 /* poll */ tappoll,
110 /* mmap */ nommap,
111 /* startegy */ nostrategy,
112 /* dev name */ CDEV_NAME,
113 /* dev major */ CDEV_MAJOR,
114 /* dump */ nodump,
115 /* psize */ nopsize,
116 /* flags */ 0,
117};
118
119static int tapdebug = 0; /* debug flag */
120static SLIST_HEAD(, tap_softc) taphead; /* first device */
121static udev_t tapbasedev = NOUDEV; /* base device */
122static struct rman tapdevunits[2]; /* device units */
123#define tapunits tapdevunits
124#define vmnetunits (tapdevunits + 1)
--- 798 unchanged lines hidden ---