add ether

This commit is contained in:
rsc 2005-12-31 19:34:11 +00:00
parent a7042f072b
commit ad79121be5

View file

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