Deleted Added
full compact
if_tap.c (126080) if_tap.c (126188)
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/*
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 126080 2004-02-21 21:10:55Z phk $
34 * $FreeBSD: head/sys/net/if_tap.c 126188 2004-02-24 04:35:44Z bde $
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>

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

93static d_close_t tapclose;
94static d_read_t tapread;
95static d_write_t tapwrite;
96static d_ioctl_t tapioctl;
97static d_poll_t tappoll;
98
99static struct cdevsw tap_cdevsw = {
100 .d_version = D_VERSION,
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>

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

93static d_close_t tapclose;
94static d_read_t tapread;
95static d_write_t tapwrite;
96static d_ioctl_t tapioctl;
97static d_poll_t tappoll;
98
99static struct cdevsw tap_cdevsw = {
100 .d_version = D_VERSION,
101 .d_flags = D_NEEDGIANT,
101 .d_flags = D_PSEUDO | D_NEEDGIANT,
102 .d_open = tapopen,
103 .d_close = tapclose,
104 .d_read = tapread,
105 .d_write = tapwrite,
106 .d_ioctl = tapioctl,
107 .d_poll = tappoll,
108 .d_name = CDEV_NAME,
102 .d_open = tapopen,
103 .d_close = tapclose,
104 .d_read = tapread,
105 .d_write = tapwrite,
106 .d_ioctl = tapioctl,
107 .d_poll = tappoll,
108 .d_name = CDEV_NAME,
109 .d_flags = D_PSEUDO,
110};
111
112static int tapdebug = 0; /* debug flag */
113static SLIST_HEAD(, tap_softc) taphead; /* first device */
114static struct clonedevs *tapclones;
115
116MALLOC_DECLARE(M_TAP);
117MALLOC_DEFINE(M_TAP, CDEV_NAME, "Ethernet tunnel interface");

--- 705 unchanged lines hidden ---
109};
110
111static int tapdebug = 0; /* debug flag */
112static SLIST_HEAD(, tap_softc) taphead; /* first device */
113static struct clonedevs *tapclones;
114
115MALLOC_DECLARE(M_TAP);
116MALLOC_DEFINE(M_TAP, CDEV_NAME, "Ethernet tunnel interface");

--- 705 unchanged lines hidden ---