mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-27 11:52:03 +00:00
add ether
This commit is contained in:
parent
a7042f072b
commit
ad79121be5
1 changed files with 2 additions and 1 deletions
|
@ -11,10 +11,11 @@ main(void)
|
|||
|
||||
fmtinstall('I', eipfmt);
|
||||
fmtinstall('M', eipfmt);
|
||||
fmtinstall('E', eipfmt);
|
||||
|
||||
list = readipifc("/net", nil, -1);
|
||||
for(ifc = list; ifc; ifc = ifc->next){
|
||||
print("ipifc %s %d\n", ifc->dev, ifc->mtu);
|
||||
print("ipifc %s %d %E\n", ifc->dev, ifc->mtu, ifc->ether);
|
||||
for(lifc = ifc->lifc; lifc; lifc = lifc->next)
|
||||
print("\t%I %M %I\n", lifc->ip, lifc->mask, lifc->net);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue