Show the link mode in `show links'.
This commit is contained in:
parent
0438ce3a88
commit
d4156d002c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=36316
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: bundle.c,v 1.4 1998/05/23 22:24:27 brian Exp $
|
||||
* $Id: bundle.c,v 1.5 1998/05/23 22:27:53 brian Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
@ -1087,9 +1087,10 @@ bundle_ShowLinks(struct cmdargs const *arg)
|
||||
struct datalink *dl;
|
||||
|
||||
for (dl = arg->bundle->links; dl; dl = dl->next) {
|
||||
prompt_Printf(arg->prompt, "Name: %s [%s]", dl->name, datalink_State(dl));
|
||||
prompt_Printf(arg->prompt, "Name: %s [%s, %s]",
|
||||
dl->name, mode2Nam(dl->physical->type), datalink_State(dl));
|
||||
if (dl->physical->link.throughput.rolling && dl->state == DATALINK_OPEN)
|
||||
prompt_Printf(arg->prompt, " (weight %d, %d bytes/sec)",
|
||||
prompt_Printf(arg->prompt, " weight %d, %d bytes/sec",
|
||||
dl->mp.weight,
|
||||
dl->physical->link.throughput.OctetsPerSecond);
|
||||
prompt_Printf(arg->prompt, "\n");
|
||||
|
Loading…
Reference in New Issue
Block a user