mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
we need to specify a NETMAP_API version or the ioctl() will fail.
This commit is contained in:
parent
9431cc1696
commit
87a9e4379e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=233947
@ -232,6 +232,7 @@ netmap_open(struct my_ring *me, int ringid)
|
||||
bzero(&req, sizeof(req));
|
||||
strncpy(req.nr_name, me->nmr.nr_name, sizeof(req.nr_name));
|
||||
req.nr_ringid = ringid;
|
||||
req.nr_version = NETMAP_API;
|
||||
err = ioctl(fd, NIOCGINFO, &req);
|
||||
if (err) {
|
||||
D("cannot get info on %s", me->nmr.nr_name);
|
||||
|
Loading…
Reference in New Issue
Block a user