]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[ifmgmt] Make "ifstat" show the link-layer protocol for each netdev
authorChristian Iversen <ci@iversenit.dk>
Tue, 26 Jan 2021 20:46:33 +0000 (21:46 +0100)
committerMichael Brown <mcb30@ipxe.org>
Tue, 26 Jan 2021 21:02:10 +0000 (21:02 +0000)
commitf4c3a01470289d450dbe437fdfb1e85309459374
tree58c2ca2863ba293b651263fbcaa068cbd64ac240
parent42db0bd0417721a026313fc151f36a8ef0bff4e4
[ifmgmt] Make "ifstat" show the link-layer protocol for each netdev

This is useful on devices that perform auto-detection for ports.
Example output:

    iPXE> ifstat
    net0: 00:11:22:33:44:55 using mt4099 on 0000:00:03.0 (Ethernet) [open]
      [Link:down, TX:0 TXE:0 RX:0 RXE:0]
      [Link status: Unknown (http://ipxe.org/1a086101)]
    net1: 00:11:22:33:44:56 using mt4099 on 0000:00:03.0 (IPoIB) [open]
      [Link:down, TX:0 TXE:0 RX:0 RXE:0]
      [Link status: Initialising (http://ipxe.org/1a136101)]

Signed-off-by: Christian Iversen <ci@iversenit.dk>
src/usr/ifmgmt.c