diff options
author | 2005-04-20 17:03:22 +0000 | |
---|---|---|
committer | 2005-04-20 17:03:22 +0000 | |
commit | 3a4a09a095da66df3827e2bf88ade11ba2e02d91 (patch) | |
tree | 152e9b2b802c3c6ad43b567961168def24db813f | |
parent | shut up a useless warning for newly created files (diff) | |
download | wireguard-openbsd-3a4a09a095da66df3827e2bf88ade11ba2e02d91.tar.xz wireguard-openbsd-3a4a09a095da66df3827e2bf88ade11ba2e02d91.zip |
the linktype (DLT) should always be of type u_int.
fine deraadt@
-rw-r--r-- | sys/net/bpf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index b1d29bba72d..8588e507fa8 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.56 2005/01/07 16:28:38 reyk Exp $ */ +/* $OpenBSD: bpf.c,v 1.57 2005/04/20 17:03:22 reyk Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -81,7 +81,7 @@ int bpf_allocbufs(struct bpf_d *); void bpf_freed(struct bpf_d *); void bpf_ifname(struct ifnet *, struct ifreq *); void bpf_mcopy(const void *, void *, size_t); -int bpf_movein(struct uio *, int, struct mbuf **, +int bpf_movein(struct uio *, u_int, struct mbuf **, struct sockaddr *, struct bpf_insn *); void bpf_attachd(struct bpf_d *, struct bpf_if *); void bpf_detachd(struct bpf_d *); @@ -103,7 +103,7 @@ struct bpf_d *bpfilter_create(int); void bpfilter_destroy(struct bpf_d *); int -bpf_movein(struct uio *uio, int linktype, struct mbuf **mp, +bpf_movein(struct uio *uio, u_int linktype, struct mbuf **mp, struct sockaddr *sockp, struct bpf_insn *filter) { struct mbuf *m; @@ -528,7 +528,7 @@ bpfwrite(dev_t dev, struct uio *uio, int ioflag) if (uio->uio_resid == 0) return (0); - error = bpf_movein(uio, (int)d->bd_bif->bif_dlt, &m, + error = bpf_movein(uio, d->bd_bif->bif_dlt, &m, (struct sockaddr *)&dst, d->bd_wfilter); if (error) return (error); |