Add in knowledge of RESTART-ANY and
authorDave A. Borman <dab@ucbvax.Berkeley.EDU>
Wed, 20 Jan 1993 04:53:11 +0000 (20:53 -0800)
committerDave A. Borman <dab@ucbvax.Berkeley.EDU>
Wed, 20 Jan 1993 04:53:11 +0000 (20:53 -0800)
RESTART-XON in the option printing code where
it prints out flow control suboptions.

SCCS-vsn: usr.bin/telnet/utilities.c 5.6

usr/src/usr.bin/telnet/utilities.c

index a5598d8..70a1e30 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)utilities.c        5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)utilities.c        5.6 (Berkeley) %G%";
 #endif /* not lint */
 
 #define        TELOPTS
 #endif /* not lint */
 
 #define        TELOPTS
@@ -350,10 +350,14 @@ printsub(direction, pointer, length)
                break;
            }
            switch (pointer[1]) {
                break;
            }
            switch (pointer[1]) {
-           case 0:
+           case LFLOW_OFF:
                fprintf(NetTrace, " OFF"); break;
                fprintf(NetTrace, " OFF"); break;
-           case 1:
+           case LFLOW_ON:
                fprintf(NetTrace, " ON"); break;
                fprintf(NetTrace, " ON"); break;
+           case LFLOW_RESTART_ANY:
+               fprintf(NetTrace, " RESTART-ANY"); break;
+           case LFLOW_RESTART_XON:
+               fprintf(NetTrace, " RESTART-XON"); break;
            default:
                fprintf(NetTrace, " %d (unknown)", pointer[1]);
            }
            default:
                fprintf(NetTrace, " %d (unknown)", pointer[1]);
            }