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.
This commit is contained in:
Ed Maste 2012-09-04 20:51:25 +00:00
parent d2c10b2a70
commit d2a49f2c86
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240103

View File

@ -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");