]> The Tcpdump Group git mirrors - tcpdump/blobdiff - interface.h
Fix checksum and offset printing.
[tcpdump] / interface.h
index 43d31e21bc56fc689b619d8761f2ae752f286d27..990bebfdef2e17e62485797ef0a05e427310196c 100644 (file)
@@ -18,7 +18,7 @@
  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  *
- * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.151 2001-01-15 03:59:13 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.155 2001-03-09 05:38:20 guy Exp $ (LBL)
  */
 
 #ifndef tcpdump_interface_h
@@ -55,6 +55,10 @@ extern size_t strlcat (char *, const char *, size_t);
 extern size_t strlcpy (char *, const char *, size_t);
 #endif
 
+#ifndef HAVE_STRDUP
+extern char *strdup (const char *str);
+#endif
+
 struct tok {
        int v;                  /* value */
        char *s;                /* string */
@@ -262,10 +266,12 @@ extern void print_data(const unsigned char *, int);
 extern void l2tp_print(const u_char *, u_int);
 extern void lcp_print(const u_char *, u_int);
 extern void vrrp_print(const u_char *bp, u_int len, int ttl);
-extern void cdp_print(const u_char *p, u_int length, u_int caplen,
-                     const u_char *esrc, const u_char *edst);
+extern void cdp_print(const u_char *, u_int, u_int, const u_char *,
+       const u_char *);
 extern void stp_print(const u_char *p, u_int length);
 extern void radius_print(const u_char *, u_int);
+extern void lwres_print(const u_char *, u_int);
+extern void pptp_print(const u_char *, u_int);
 
 #ifdef INET6
 extern void ip6_print(const u_char *, int);
@@ -279,4 +285,4 @@ extern int rt6_print(const u_char *, const u_char *);
 extern void ospf6_print(const u_char *, u_int);
 extern void dhcp6_print(const u_char *, u_int, u_int16_t, u_int16_t);
 #endif /*INET6*/
-extern u_short in_cksum(const u_short *addr, register int len, u_short csum);
+extern u_short in_cksum(const u_short *, register int, u_short);