12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef tcpdump_interface_h
- #define tcpdump_interface_h
- #ifdef HAVE_OS_PROTO_H
- #include "os-proto.h"
- #endif
- #include <stdarg.h>
- #if HAVE_STDINT_H
- #include <stdint.h>
- #endif
- #if !defined(HAVE_SNPRINTF)
- int snprintf(char *, size_t, const char *, ...)
- #ifdef __ATTRIBUTE___FORMAT_OK
- __attribute__((format(printf, 3, 4)))
- #endif
- ;
- #endif
- #if !defined(HAVE_VSNPRINTF)
- int vsnprintf(char *, size_t, const char *, va_list)
- #ifdef __ATTRIBUTE___FORMAT_OK
- __attribute__((format(printf, 3, 0)))
- #endif
- ;
- #endif
- #ifndef HAVE_STRLCAT
- extern size_t strlcat(char *, const char *, size_t);
- #endif
- #ifndef HAVE_STRLCPY
- extern size_t strlcpy(char *, const char *, size_t);
- #endif
- #ifndef HAVE_STRDUP
- extern char *strdup(const char *);
- #endif
- #ifndef HAVE_STRSEP
- extern char *strsep(char **, const char *);
- #endif
- #endif
- extern char *program_name;
- #include <pcap.h>
- #ifndef HAVE_BPF_DUMP
- struct bpf_program;
- extern void bpf_dump(const struct bpf_program *, int);
- #endif
|