libip: make myetheraddr() accept # device names

This commit is contained in:
cinap_lenrek 2013-02-23 09:33:04 +01:00
parent 82c816d15c
commit 3a79bf2ae6

View file

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