oops
This commit is contained in:
parent
1237836a7f
commit
a70ad97730
2 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ OFILES=\
|
|||
eipfmt.$O\
|
||||
freeipifc.$O\
|
||||
ipaux.$O\
|
||||
myetheraddr.$O\
|
||||
myipaddr.$O\
|
||||
parseether.$O\
|
||||
parseip.$O\
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue