mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 15:24:25 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=240103
|
@ -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 a new issue