summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-08-04 13:19:57 -0700
committerGuy Harris <guy@alum.mit.edu>2016-08-04 13:19:57 -0700
commit91e08f888d86fc7bc83732ee216c4ea609691d1c (patch)
treeea6b6899a341129eb2ae7e19ef88e68bcbbe4b24 /interface.h
parentd04b4e4b88904407b889cbf9207e1e85deff80fb (diff)
downloadtcpdump-91e08f888d86fc7bc83732ee216c4ea609691d1c.tar.gz
Move some code around.
Move stuff to initialize and clean up libraries that are used by netdissect code into nd_init() and nd_cleanup() routines in libnetdissect; this includes Winsock (which is used on Windows by, for example, the code to get names for IP addresses) and libsmi. Call nd_init() when tcpdump starts up, and call nd_cleanup() when it exits. Move util.c routines to tcpdump.c, and make them static. Use ndo->ndo_error to report a failure to open a file in print-esp.c.
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/interface.h b/interface.h
index 01de9ea2..46d338b4 100644
--- a/interface.h
+++ b/interface.h
@@ -69,21 +69,6 @@ extern char *strsep(char **, const char *);
extern char *program_name; /* used to generate self-identifying messages */
-extern void error(const char *, ...)
- __attribute__((noreturn))
-#ifdef __ATTRIBUTE___FORMAT_OK
- __attribute__((format (printf, 1, 2)))
-#endif /* __ATTRIBUTE___FORMAT_OK */
- ;
-extern void warning(const char *, ...)
-#ifdef __ATTRIBUTE___FORMAT_OK
- __attribute__((format (printf, 1, 2)))
-#endif /* __ATTRIBUTE___FORMAT_OK */
- ;
-
-extern char *read_infile(char *);
-extern char *copy_argv(char **);
-
#include <pcap.h>
#ifndef HAVE_BPF_DUMP