libip: make myetheraddr() accept # device names
This commit is contained in:
parent
82c816d15c
commit
3a79bf2ae6
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ myetheraddr(uchar *to, char *dev)
|
|||
int n, fd;
|
||||
char buf[256];
|
||||
|
||||
if(*dev == '/')
|
||||
if(*dev == '/' || *dev == '#')
|
||||
sprint(buf, "%s/addr", dev);
|
||||
else
|
||||
sprint(buf, "/net/%s/addr", dev);
|
||||
|
|
Loading…
Reference in a new issue