diff options
author | brian <brian@FreeBSD.org> | 1998-05-23 22:28:19 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1998-05-23 22:28:19 +0000 |
commit | 400d0bfad16ae6cbe5e19d25994b16243d4ef9a1 (patch) | |
tree | 3e984f17c0a3a14e9535f3262ceaf1db0c9f1b41 /usr.sbin | |
parent | b18cb274a1cbacdde1cfd5ca76aeba7f7f307386 (diff) | |
download | FreeBSD-src-400d0bfad16ae6cbe5e19d25994b16243d4ef9a1.zip FreeBSD-src-400d0bfad16ae6cbe5e19d25994b16243d4ef9a1.tar.gz |
Show the link mode in `show links'.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index d32ad71..047a463 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -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"); |