Deleted Added
full compact
if_tun.c (172930) if_tun.c (179726)
1/* $NetBSD: if_tun.c,v 1.14 1994/06/29 06:36:25 cgd Exp $ */
2
3/*-
4 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
5 * Nottingham University 1987.
6 *
7 * This source may be freely distributed, however I would be interested
8 * in any changes that are made.
9 *
10 * This driver takes packets off the IP i/f and hands them up to a
11 * user process to have its wicked way with. This driver has it's
12 * roots in a similar driver written by Phil Cockcroft (formerly) at
13 * UCL. This driver is based much more on read/write/poll mode of
14 * operation though.
15 *
1/* $NetBSD: if_tun.c,v 1.14 1994/06/29 06:36:25 cgd Exp $ */
2
3/*-
4 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk>
5 * Nottingham University 1987.
6 *
7 * This source may be freely distributed, however I would be interested
8 * in any changes that are made.
9 *
10 * This driver takes packets off the IP i/f and hands them up to a
11 * user process to have its wicked way with. This driver has it's
12 * roots in a similar driver written by Phil Cockcroft (formerly) at
13 * UCL. This driver is based much more on read/write/poll mode of
14 * operation though.
15 *
16 * $FreeBSD: head/sys/net/if_tun.c 172930 2007-10-24 19:04:04Z rwatson $
16 * $FreeBSD: head/sys/net/if_tun.c 179726 2008-06-11 18:55:19Z ed $
17 */
18
19#include "opt_atalk.h"
20#include "opt_inet.h"
21#include "opt_inet6.h"
22#include "opt_ipx.h"
23#include "opt_mac.h"
24

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

157 .f_isfd = 1,
158 .f_attach = NULL,
159 .f_detach = tunkqdetach,
160 .f_event = tunkqwrite,
161};
162
163static struct cdevsw tun_cdevsw = {
164 .d_version = D_VERSION,
17 */
18
19#include "opt_atalk.h"
20#include "opt_inet.h"
21#include "opt_inet6.h"
22#include "opt_ipx.h"
23#include "opt_mac.h"
24

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

157 .f_isfd = 1,
158 .f_attach = NULL,
159 .f_detach = tunkqdetach,
160 .f_event = tunkqwrite,
161};
162
163static struct cdevsw tun_cdevsw = {
164 .d_version = D_VERSION,
165 .d_flags = D_PSEUDO | D_NEEDGIANT,
165 .d_flags = D_PSEUDO | D_NEEDGIANT | D_NEEDMINOR,
166 .d_open = tunopen,
167 .d_close = tunclose,
168 .d_read = tunread,
169 .d_write = tunwrite,
170 .d_ioctl = tunioctl,
171 .d_poll = tunpoll,
172 .d_kqfilter = tunkqfilter,
173 .d_name = TUNNAME,

--- 883 unchanged lines hidden ---
166 .d_open = tunopen,
167 .d_close = tunclose,
168 .d_read = tunread,
169 .d_write = tunwrite,
170 .d_ioctl = tunioctl,
171 .d_poll = tunpoll,
172 .d_kqfilter = tunkqfilter,
173 .d_name = TUNNAME,

--- 883 unchanged lines hidden ---