if_tap.c (90227) | if_tap.c (92725) |
---|---|
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 90227 2002-02-05 02:00:56Z dillon $ | 34 * $FreeBSD: head/sys/net/if_tap.c 92725 2002-03-19 21:54:18Z alfred $ |
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> --- 33 unchanged lines hidden (view full) --- 76 77#define TAP "tap" 78#define VMNET "vmnet" 79#define TAPMAXUNIT 0x7fff 80#define VMNET_DEV_MASK 0x00800000 81 /* 0x007f00ff */ 82 83/* module */ | 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> --- 33 unchanged lines hidden (view full) --- 76 77#define TAP "tap" 78#define VMNET "vmnet" 79#define TAPMAXUNIT 0x7fff 80#define VMNET_DEV_MASK 0x00800000 81 /* 0x007f00ff */ 82 83/* module */ |
84static int tapmodevent __P((module_t, int, void *)); | 84static int tapmodevent (module_t, int, void *); |
85 86/* device */ | 85 86/* device */ |
87static void tapclone __P((void *, char *, int, dev_t *)); 88static void tapcreate __P((dev_t)); | 87static void tapclone (void *, char *, int, dev_t *); 88static void tapcreate (dev_t); |
89 90/* network interface */ | 89 90/* network interface */ |
91static void tapifstart __P((struct ifnet *)); 92static int tapifioctl __P((struct ifnet *, u_long, caddr_t)); 93static void tapifinit __P((void *)); | 91static void tapifstart (struct ifnet *); 92static int tapifioctl (struct ifnet *, u_long, caddr_t); 93static void tapifinit (void *); |
94 95/* character device */ 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; --- 845 unchanged lines hidden --- | 94 95/* character device */ 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; --- 845 unchanged lines hidden --- |