]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-telnet.c
Makefile.in: 'distclean' target: add files and directories to remove
[tcpdump] / print-telnet.c
index 44a48f475a708c60e870dcbdac0ca18418cd0d49..e8d0a3eee520d61fc136be574add6f9cfc4e3e2a 100644 (file)
 #include "config.h"
 #endif
 
-#ifndef lint
-static const char rcsid[] _U_ =
-     "@(#) $Header: /tcpdump/master/tcpdump/print-telnet.c,v 1.24 2003-12-29 11:05:10 hannes Exp $";
-#endif
-
 #include <tcpdump-stdinc.h>
 
 #include <stdio.h>
@@ -61,7 +56,6 @@ static const char rcsid[] _U_ =
 #include <string.h>
 
 #include "interface.h"
-#include "addrtoname.h"
 
 #define TELCMDS
 #define TELOPTS
@@ -490,7 +484,6 @@ telnet_parse(const u_char *sp, u_int length, int print)
                if (print)
                        (void)printf(" SE");
                sp += 2;
-               length -= 2;
                break;
        default:
                if (print)
@@ -528,7 +521,7 @@ telnet_print(const u_char *sp, u_int length)
                if (Xflag && 2 < vflag) {
                        if (first)
                                printf("\nTelnet:");
-                       hex_print_with_offset("\n", sp, l, sp - osp);
+                       hex_print_with_offset(gndo,"\n", sp, l, sp - osp);
                        if (l > 8)
                                printf("\n\t\t\t\t");
                        else