Re: link-state change for virtual interfaces
Valery Ushakov <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.network |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Sep 25, 2024 at 22:05:41 +0900, Rin Okuyama wrote: > ```` > # rump.ifconfig shmif0 media auto > # rump.ifconfig shmif0 > shmif0: flags=0x8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 > capabilities=0x7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx> > capabilities=0x7ff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx> > capabilities=0x7ff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6> > enabled=0 > address: b2:a0:01:9d:82:a5 > linkstr: bus1 > media: Ethernet autoselect > # rump.ifconfig shmif0 media none > # rump.ifconfig shmif0 > shmif0: flags=0x8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 > capabilities=0x7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx> > capabilities=0x7ff80<TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx> > capabilities=0x7ff80<TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6> > enabled=0 > address: b2:a0:6b:44:5b:bd > linkstr: bus1 > media: Ethernet none > ```` > > If `-v` option is specified to ifconfig, > linkstate: up > and > linkstate: down > appear b/w linkstr and media lines. This should happen also for vether: > > https://mail-index.netbsd.org/source-changes/2024/08/20/msg152936.html I see that ifconfig(8) also talks about the connection between link state and media state. So that seems like a natural choice then. PS: Roy, that passage in ifconfig.8 was added by you back in 2020 and it seems to have some sort of edito, where the sentence fragment +For interface drivers that do not support media status reporting. is inserted in the middle of a phrase, seemingly at random. Please, could you take a look and fix it? -uwe