if_tun.c (10429) | if_tun.c (10653) |
---|---|
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. --- 49 unchanged lines hidden (view full) --- 58#if NBPFILTER > 0 59#include <sys/time.h> 60#include <net/bpf.h> 61#endif 62 63#include <net/if_tun.h> 64 65#ifdef __FreeBSD__ | 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. --- 49 unchanged lines hidden (view full) --- 58#if NBPFILTER > 0 59#include <sys/time.h> 60#include <net/bpf.h> 61#endif 62 63#include <net/if_tun.h> 64 65#ifdef __FreeBSD__ |
66static void tunattach __P((caddr_t)); | 66static void tunattach __P((void *)); |
67PSEUDO_SET(tunattach, if_tun); 68#endif 69 70#define TUNDEBUG if (tundebug) printf 71int tundebug = 0; 72 73struct tun_softc tunctl[NTUN]; 74 --- 12 unchanged lines hidden (view full) --- 87 tunioctl, (d_stop_t *)enodev, (d_reset_t *)nullop, (d_ttycv_t *)enodev, 88 tunselect, (d_mmap_t *)enodev, NULL }; 89extern dev_t tuncdev; 90 91static int tuninit __P((int)); 92 93static void 94tunattach(udata) | 67PSEUDO_SET(tunattach, if_tun); 68#endif 69 70#define TUNDEBUG if (tundebug) printf 71int tundebug = 0; 72 73struct tun_softc tunctl[NTUN]; 74 --- 12 unchanged lines hidden (view full) --- 87 tunioctl, (d_stop_t *)enodev, (d_reset_t *)nullop, (d_ttycv_t *)enodev, 88 tunselect, (d_mmap_t *)enodev, NULL }; 89extern dev_t tuncdev; 90 91static int tuninit __P((int)); 92 93static void 94tunattach(udata) |
95 caddr_t udata; | 95 void *udata; |
96{ 97 register int i; 98 struct ifnet *ifp; 99 struct sockaddr_in *sin; 100 101 /* 102 * In case we are an LKM, set up device switch. 103 */ --- 476 unchanged lines hidden --- | 96{ 97 register int i; 98 struct ifnet *ifp; 99 struct sockaddr_in *sin; 100 101 /* 102 * In case we are an LKM, set up device switch. 103 */ --- 476 unchanged lines hidden --- |