]> The Tcpdump Group git mirrors - tcpdump/blobdiff - interface.h
From Heinz-Ado Arnolds <[email protected]>:
[tcpdump] / interface.h
index d77a354a46b00cbd58fdde8a994d7f66e61755bb..27489e0d12ad63b538502aae464268c36c351c9b 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.172 2001-10-01 01:12:00 mcr Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/tcpdump/interface.h,v 1.176 2001-11-25 01:48:47 guy Exp $ (LBL)
  */
 
 #ifndef tcpdump_interface_h
@@ -124,9 +124,7 @@ extern int packettype;              /* as specified by -T */
 #endif
 #endif
 
-extern char *program_name;     /*used to generate self-identifying messages */
-
-extern char *WFileName;
+extern char *program_name;     /* used to generate self-identifying messages */
 
 extern int32_t thiszone;       /* seconds offset from gmt to local time */
 
@@ -153,6 +151,9 @@ extern void relts_print(int);
 extern int fn_print(const u_char *, const u_char *);
 extern int fn_printn(const u_char *, u_int, const u_char *);
 extern const char *tok2str(const struct tok *, const char *, int);
+extern const char *tok2strary_internal(const char **, int, const char *, int);
+#define        tok2strary(a,f,i) tok2strary_internal(a, sizeof(a)/sizeof(a[0]),f,i)
+
 extern const char *dnaddr_string(u_short);
 
 extern void info(int);
@@ -172,6 +173,7 @@ extern void safeputs(const char *);
 extern const char *isonsap_string(const u_char *);
 extern const char *llcsap_string(u_char);
 extern const char *protoid_string(const u_char *);
+extern const char *ipxsap_string(u_short);
 extern const char *dnname_string(u_short);
 extern const char *dnnum_string(u_short);
 
@@ -179,8 +181,6 @@ extern const char *dnnum_string(u_short);
 
 #include <pcap.h>
 
-extern void dump_and_trunc(u_char *, const struct pcap_pkthdr *, 
-                         const u_char *);
 extern void ascii_print_with_offset(const u_char *, u_int, u_int);    
 extern void ascii_print(const u_char *, u_int);    
 extern void hex_print_with_offset(const u_char *, u_int, u_int);    
@@ -296,7 +296,7 @@ extern int hbhopt_print(const u_char *);
 extern int dstopt_print(const u_char *);
 extern int frag6_print(const u_char *, const u_char *);
 extern void icmp6_print(const u_char *, const u_char *);
-extern void ripng_print(const u_char *, int);
+extern void ripng_print(const u_char *, unsigned int);
 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);
@@ -307,7 +307,4 @@ extern u_short in_cksum(const u_short *, register u_int, int);
 struct bpf_program;
 
 extern void bpf_dump(struct bpf_program *, int);
-
-extern pcap_t *pd;
-
 #endif