Silence some gcc 4 warnings. It is expected that the bpf_movein() routine
will intialize the the header length and re-initialize the mbuf pointer to reference the mbuf that is allocated after moving user supplied packet data in.
This commit is contained in:
parent
d933824786
commit
d83e603ac7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=170896
@ -613,6 +613,8 @@ bpfwrite(struct cdev *dev, struct uio *uio, int ioflag)
|
||||
return (0);
|
||||
|
||||
bzero(&dst, sizeof(dst));
|
||||
m = NULL;
|
||||
hlen = 0;
|
||||
error = bpf_movein(uio, (int)d->bd_bif->bif_dlt, ifp->if_mtu,
|
||||
&m, &dst, &hlen, d->bd_wfilter);
|
||||
if (error)
|
||||
|
Loading…
Reference in New Issue
Block a user