X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/57ceb28fe22e24610a71ddf7c4ab36ce50fbb432..35795ae1ba7d2f801efaef6e6716fc81727be4eb:/interface.h diff --git a/interface.h b/interface.h index e7cbf7ab..840d8eb7 100644 --- a/interface.h +++ b/interface.h @@ -18,13 +18,12 @@ * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.129 2000-06-18 11:12:27 assar Exp $ (LBL) + * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.133 2000-07-11 01:22:38 assar Exp $ (LBL) */ #ifndef tcpdump_interface_h #define tcpdump_interface_h -#include "gnuc.h" #ifdef HAVE_OS_PROTO_H #include "os-proto.h" #endif @@ -186,9 +185,7 @@ extern const u_char *snapend; /* Bail if "var" was not captured */ #define TCHECK(var) TCHECK2(var, sizeof(var)) -#ifdef __STDC__ struct timeval; -#endif extern void ts_print(const struct timeval *); extern void relts_print(int); @@ -200,11 +197,9 @@ extern char *dnaddr_string(u_short); extern void wrapup(int); -#if __STDC__ -extern __dead void error(const char *, ...) - __attribute__((volatile, format (printf, 1, 2))); +extern void error(const char *, ...) + __attribute__((noreturn, format (printf, 1, 2))); extern void warning(const char *, ...) __attribute__ ((format (printf, 1, 2))); -#endif extern char *read_infile(char *); extern char *copy_argv(char **); @@ -220,9 +215,7 @@ extern char *dnnum_string(u_short); /* The printer routines. */ -#ifdef __STDC__ struct pcap_pkthdr; -#endif extern void ascii_print_with_offset(const u_char *, u_int, u_int); extern void ascii_print(const u_char *, u_int); @@ -251,6 +244,7 @@ extern void gre_print(const u_char *, u_int); extern void icmp_print(const u_char *, u_int, const u_char *); extern void igrp_print(const u_char *, u_int, const u_char *); extern void ip_print(const u_char *, u_int); +extern void ipN_print(const u_char *, u_int); extern void ipx_print(const u_char *, u_int); extern void isoclns_print(const u_char *, u_int, u_int, const u_char *, const u_char *); @@ -317,7 +311,3 @@ 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); - -struct bpf_program; - -extern void bpf_dump(struct bpf_program *, int);