summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2012-09-04 20:51:25 +0000
committeremaste <emaste@FreeBSD.org>2012-09-04 20:51:25 +0000
commit78d26d09cb26ef60aa643d889779bd810bd357e6 (patch)
treeaaf399448fc3412424604506a3c21b5419dcf819 /tools
parent618d9246d73e318cbc0ed43a1ddd77a983f21753 (diff)
downloadFreeBSD-src-78d26d09cb26ef60aa643d889779bd810bd357e6.zip
FreeBSD-src-78d26d09cb26ef60aa643d889779bd810bd357e6.tar.gz
Failure to open netmap device is unrecoverable.
There's no reason to "fail later" since there's nothing this tool can do in netmap mode without /dev/netmap open.
Diffstat (limited to 'tools')
-rw-r--r--tools/tools/netmap/pkt-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/netmap/pkt-gen.c b/tools/tools/netmap/pkt-gen.c
index 4aa09d3..d0e6409 100644
--- a/tools/tools/netmap/pkt-gen.c
+++ b/tools/tools/netmap/pkt-gen.c
@@ -892,7 +892,7 @@ main(int arc, char **argv)
fd = open("/dev/netmap", O_RDWR);
if (fd == -1) {
D("Unable to open /dev/netmap");
- // fail later
+ exit(1);
} else {
if ((ioctl(fd, NIOCGINFO, &nmr)) == -1) {
D("Unable to get if info without name");
OpenPOWER on IntegriCloud