diff options
author | bde <bde@FreeBSD.org> | 1995-11-04 13:25:33 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-11-04 13:25:33 +0000 |
commit | 336a6f070b228b59f25b26ea4de3ac0ff1c7160f (patch) | |
tree | 6f35ae0e7caade790223565873d04a0f034c5822 /sys/net | |
parent | 246c28b0f93b97b2c3c8dd1984ec68e01343a509 (diff) | |
download | FreeBSD-src-336a6f070b228b59f25b26ea4de3ac0ff1c7160f.zip FreeBSD-src-336a6f070b228b59f25b26ea4de3ac0ff1c7160f.tar.gz |
Moved prototypes for devswitch functions from conf.c and driver sources
to <machine/conf.h>. conf.h was mechanically generated by
`grep ^d_ conf.c >conf.h'. This accounts for part of its ugliness. The
prototypes should be moved back to the driver sources when the functions
are staticalized.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/bpf.h | 8 | ||||
-rw-r--r-- | sys/net/if_tun.c | 6 |
2 files changed, 1 insertions, 13 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h index 8ac0ed0..2be8635 100644 --- a/sys/net/bpf.h +++ b/sys/net/bpf.h @@ -37,7 +37,7 @@ * * @(#)bpf.h 8.1 (Berkeley) 6/10/93 * - * $Id: bpf.h,v 1.5 1995/06/15 18:10:59 pst Exp $ + * $Id: bpf.h,v 1.6 1995/09/08 11:08:55 bde Exp $ */ #ifndef _NET_BPF_H_ @@ -239,12 +239,6 @@ struct bpf_insn { #ifdef KERNEL int bpf_validate __P((struct bpf_insn *, int)); -int bpfopen __P((dev_t, int, int, struct proc *)); -int bpfclose __P((dev_t, int, int, struct proc *)); -int bpfread __P((dev_t, struct uio *, int)); -int bpfwrite __P((dev_t, struct uio *, int)); -int bpfioctl __P((dev_t, int, caddr_t, int, struct proc *)); -int bpf_select __P((dev_t, int, struct proc *)); void bpf_tap __P((caddr_t, u_char *, u_int)); void bpf_mtap __P((caddr_t, struct mbuf *)); void bpfattach __P((caddr_t *, struct ifnet *, u_int, u_int)); diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index b233039..65f36e2 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -72,15 +72,9 @@ int tundebug = 0; struct tun_softc tunctl[NTUN]; -d_open_t tunopen; -d_close_t tunclose; int tunoutput __P((struct ifnet *, struct mbuf *, struct sockaddr *, struct rtentry *rt)); -d_rdwr_t tunread; -d_rdwr_t tunwrite; -d_ioctl_t tunioctl; int tunifioctl __P((struct ifnet *, int, caddr_t)); -d_select_t tunselect; static struct cdevsw tuncdevsw = { tunopen, tunclose, tunread, tunwrite, |