X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/111ff8a61dd320445f1d5167559cf65bfc2c26ca..c39d40a767a1ae36171e5bcbf6f157ff3e80fb6c:/smb.h diff --git a/smb.h b/smb.h index eb25d14a..40bba500 100644 --- a/smb.h +++ b/smb.h @@ -1,4 +1,3 @@ -/* @(#) $Header: /tcpdump/master/tcpdump/smb.h,v 1.8 2002-06-11 17:09:00 itojun Exp $ (LBL) */ /* * Copyright (C) Andrew Tridgell 1995-1999 * @@ -7,7 +6,8 @@ * or later */ -#define SMBMIN(a,b) ((a)<(b)?(a):(b)) +/* for netdissect_options */ +#include "netdissect.h" /* the complete */ #define SMBmkdir 0x00 /* create directory */ @@ -116,7 +116,9 @@ #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 *); +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);