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 111815 2003-03-03 12:15:54Z phk $ |
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 .d_open = tapopen, 105 .d_close = tapclose, 106 .d_read = tapread, 107 .d_write = tapwrite, 108 .d_ioctl = tapioctl, 109 .d_poll = tappoll, 110 .d_name = CDEV_NAME, 111 .d_maj = CDEV_MAJOR, |
112}; 113 114static int tapdebug = 0; /* debug flag */ 115static SLIST_HEAD(, tap_softc) taphead; /* first device */ 116static udev_t tapbasedev = NOUDEV; /* base device */ 117static struct rman tapdevunits[2]; /* device units */ 118#define tapunits tapdevunits 119#define vmnetunits (tapdevunits + 1) --- 798 unchanged lines hidden --- |