Draft: Implement address-based interface specifiers in ifconfig(8)
This patch adds the ability to refer to interfaces with stable(ish) names like ether:52:54:00:12:34:56
or inet:10.0.2.15
in addition to names like em0
.
Currently when using these names the output will use the format
etherhw:52:54:00:12:34:56:
link up yes type ether id 2
ether address 52:54:00:12:34:56 hwaddress 52:54:00:12:34:56
inet address 10.0.2.15 router 10.0.2.2 subnet 255.255.255.0
While this is consistent with the behaviour or ifconfig /dev/em0
, it means that the name of the interface is not shown. Should I change the behaviour to one where it is?