mirror of
https://github.com/corundum/corundum.git
synced 2025-01-16 08:12:53 +08:00
Support bare device name
This commit is contained in:
parent
cbd9d0dfc6
commit
3b8643877d
@ -374,6 +374,10 @@ struct mqnic *mqnic_open(const char *dev_name)
|
||||
if (mqnic_try_open(dev, "%s", dev_name) == 0)
|
||||
goto open;
|
||||
|
||||
// device name
|
||||
if (mqnic_try_open(dev, "/dev/%s", dev_name) == 0)
|
||||
goto open;
|
||||
|
||||
// network interface
|
||||
if (mqnic_try_open_if_name(dev, dev_name) == 0)
|
||||
goto open;
|
||||
|
Loading…
x
Reference in New Issue
Block a user