Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Apr 2012 14:26:05 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r233947 - head/tools/tools/netmap
Message-ID:  <201204061426.q36EQ5Ni012591@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: luigi
Date: Fri Apr  6 14:26:05 2012
New Revision: 233947
URL: http://svn.freebsd.org/changeset/base/233947

Log:
  we need to specify a NETMAP_API version or the ioctl() will fail.

Modified:
  head/tools/tools/netmap/pcap.c

Modified: head/tools/tools/netmap/pcap.c
==============================================================================
--- head/tools/tools/netmap/pcap.c	Fri Apr  6 13:34:19 2012	(r233946)
+++ head/tools/tools/netmap/pcap.c	Fri Apr  6 14:26:05 2012	(r233947)
@@ -232,6 +232,7 @@ netmap_open(struct my_ring *me, int ring
 	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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204061426.q36EQ5Ni012591>