ping.
pstat(8) will display text description for the nmea line
discipline, but not for msts/endrun. This patch adds support
for displaying text for msts and endrun line disciplines in
the output of pstat -t.
comments? ok?
diff --git usr.sbin/pstat/pstat.8 usr.sbin/pstat/pstat.8
index d523b0014..d2631f834 100644
--- usr.sbin/pstat/pstat.8
+++ usr.sbin/pstat/pstat.8
@@ -212,11 +212,17 @@ TTYDISC (see
.Xr termios 4 ) ,
.Ql ppp
for PPPDISC (see
-.Xr ppp 4 )
-and
+.Xr ppp 4 ) ,
.Ql nmea
for NMEADISC (see
-.Xr nmea 4 ) .
+.Xr nmea 4 ) ,
+.Ql msts
+for MSTSDISC (see
+.Xr msts 4 ) ,
+and
+.Ql endrun
+for ENDRUNDISC (see
+.Xr endrun 4 ) .
.El
.It Fl v
Print the active vnodes.
diff --git usr.sbin/pstat/pstat.c usr.sbin/pstat/pstat.c
index 1684975c5..986dee90b 100644
--- usr.sbin/pstat/pstat.c
+++ usr.sbin/pstat/pstat.c
@@ -999,6 +999,12 @@ ttyprt(struct itty *tp)
case NMEADISC:
(void)printf("nmea\n");
break;
+ case MSTSDISC:
+ (void)printf("msts\n");
+ break;
+ case ENDRUNDISC:
+ (void)printf("endrun\n");
+ break;
default:
(void)printf("%d\n", tp->t_line);
break;