summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2012-04-06 14:26:05 +0000
committerluigi <luigi@FreeBSD.org>2012-04-06 14:26:05 +0000
commit5133fa47028e34b5d8ff73263b64c75378443132 (patch)
tree7ae90799292c3f5b67be643d17e0bfb688ffbd3f /tools
parentff7ed324aae9be6095609f1d99d8eb63796b36b8 (diff)
downloadFreeBSD-src-5133fa47028e34b5d8ff73263b64c75378443132.zip
FreeBSD-src-5133fa47028e34b5d8ff73263b64c75378443132.tar.gz
we need to specify a NETMAP_API version or the ioctl() will fail.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/netmap/pcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/tools/netmap/pcap.c b/tools/tools/netmap/pcap.c
index 2a93e82..06bb173 100644
--- a/tools/tools/netmap/pcap.c
+++ b/tools/tools/netmap/pcap.c
@@ -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);
OpenPOWER on IntegriCloud