This commit is contained in:
rsc 2006-01-02 11:16:29 +00:00
parent 1237836a7f
commit a70ad97730
2 changed files with 2 additions and 1 deletions

View file

@ -7,6 +7,7 @@ OFILES=\
eipfmt.$O\
freeipifc.$O\
ipaux.$O\
myetheraddr.$O\
myipaddr.$O\
parseether.$O\
parseip.$O\

View file

@ -11,7 +11,7 @@ myetheraddr(uchar *to, char *dev)
ifclist = readipifc(nil, nil, -1);
for(ifc=ifclist; ifc; ifc=ifc->next){
if(dev && strcmp(ifc->dev) != 0)
if(dev && strcmp(ifc->dev, dev) != 0)
continue;
if(memcmp(zea, ifc->ether, 6) == 0)
continue;