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:
parent
d2c10b2a70
commit
d2a49f2c86
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user