Deleted Added
full compact
if_tun.c (131455) if_tun.c (132199)
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 131455 2004-07-02 12:16:02Z mlaier $
16 * $FreeBSD: head/sys/net/if_tun.c 132199 2004-07-15 08:26:07Z phk $
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

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

199 mtx_unlock(&tunmtx);
200 tun_destroy(tp);
201 mtx_lock(&tunmtx);
202 }
203 mtx_unlock(&tunmtx);
204 clone_cleanup(&tunclones);
205 mtx_destroy(&tunmtx);
206 break;
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

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

199 mtx_unlock(&tunmtx);
200 tun_destroy(tp);
201 mtx_lock(&tunmtx);
202 }
203 mtx_unlock(&tunmtx);
204 clone_cleanup(&tunclones);
205 mtx_destroy(&tunmtx);
206 break;
207 default:
208 return EOPNOTSUPP;
207 }
208 return 0;
209}
210
211static moduledata_t tun_mod = {
212 "if_tun",
213 tunmodevent,
214 0

--- 665 unchanged lines hidden ---
209 }
210 return 0;
211}
212
213static moduledata_t tun_mod = {
214 "if_tun",
215 tunmodevent,
216 0

--- 665 unchanged lines hidden ---