]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Include stdio.h and fix up printf formats.
authorfenner <fenner>
Wed, 15 Dec 1999 06:55:43 +0000 (06:55 +0000)
committerfenner <fenner>
Wed, 15 Dec 1999 06:55:43 +0000 (06:55 +0000)
print-l2tp.c

index eff002de0b76502787f9d1b5698c5ba8ee2c0e2a..0a28d6616410b4b26a3d71781a0edab268452577 100644 (file)
 
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-l2tp.c,v 1.4 1999-11-21 09:36:55 fenner Exp $";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-l2tp.c,v 1.5 1999-12-15 06:55:43 fenner Exp $";
 #endif
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
+#include <stdio.h>
 #include <sys/types.h>
 #include <sys/param.h>
 #include <netinet/in.h>
@@ -255,7 +256,7 @@ l2tp_result_code_print(const u_char *dat, u_int length)
        } else if (length == 4) {       /* result & error code */
                printf("%d/%d", ntohs(*ptr), ntohs(*(ptr+1)));
        } else if (length > 4) {        /* result & error code & msg */
-               printf("%d/%d %s", ntohs(*ptr), ntohs(*(ptr+1)));
+               printf("%d/%d ", ntohs(*ptr), ntohs(*(ptr+1)));
                print_string((u_char *)(ptr+2), length - 4);
        }
 }
@@ -601,7 +602,7 @@ l2tp_avp_print(const u_char *dat, u_int length)
                        }
                        printf(")");
                } else {
-                       printf(" invalid AVP %s", ntohs(*ptr));
+                       printf(" invalid AVP %d", ntohs(*ptr));
                }
 
                l2tp_avp_print(dat + len, length - len);