]> The Tcpdump Group git mirrors - tcpdump/blobdiff - smb.h
CI: Add warning exemptions for Sun C (suncc-5.14) on Solaris 10
[tcpdump] / smb.h
diff --git a/smb.h b/smb.h
index 97a436383cf3bb6f6070cea8a642dfa1c27059a1..40bba5004ac0ac4917d9d72a4dc0564bd802d846 100644 (file)
--- a/smb.h
+++ b/smb.h
@@ -6,6 +6,9 @@
  * or later
  */
 
+/* for netdissect_options */
+#include "netdissect.h"
+
 /* the complete */
 #define SMBmkdir      0x00   /* create directory */
 #define SMBrmdir      0x01   /* delete directory */
 #define TRANSACT2_FINDNOTIFYNEXT  12
 #define TRANSACT2_MKDIR           13
 
-#define PTR_DIFF(p1, p2) ((size_t)(((char *)(p1)) - (char *)(p2)))
-
 /* some protos */
-const u_char *smb_fdata(const u_char *, const char *, const u_char *, int);
+void smb_reset(void);
+const u_char *smb_fdata(netdissect_options *, const u_char *, const char *, const u_char *, int);
+extern void smb_data_print(netdissect_options *, const u_char *, u_int);
+extern const char *smb_errstr(int, int);
+extern const char *nt_errstr(uint32_t);