X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/0056894f4eb61e343fe4badaf52843dd6461bc44..9a10fc9abd216f894aaa4a52671d99d6b0ee1c4e:/interface.h diff --git a/interface.h b/interface.h index 43d31e21..14067d05 100644 --- a/interface.h +++ b/interface.h @@ -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.154 2001-01-29 09:18:49 itojun 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,11 @@ 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); #ifdef INET6 extern void ip6_print(const u_char *, int); @@ -279,4 +284,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);