summaryrefslogtreecommitdiff
path: root/smb.h
Commit message (Collapse)AuthorAgeFilesLines
* SMB: Move smb_data_print() declaration in smb.hFrancois-Xavier Le Bail2019-11-011-0/+1
| | | | smb_data_print() is only called in print-smb.c and smbutil.c.
* Don't use leftover string length values.Guy Harris2019-05-221-0/+1
| | | | | | | | | | | Before processing an SMB request or response, set the string length variable to 0, and set a flag indicating whether we *have* a string length variable to "false". Set the latter to "true" only if we explicitly set the string length, and if it's not set when we process a counted string, report an error. (That *shouldn't* happen, but *can* happen in a malformed packet, such as an NT Create AndX request with a zero word count, meaning "no word parameters" and thus "no string length word parameter".)
* Squelch more narrowing warnings.Guy Harris2019-04-181-2/+0
| | | | | | | | | Add an ND_BYTES_BETWEEN() macro that computes how many bytes are present, starting at the second argument and running up to (but not including) the first argument, and returns that as a u_int (cutting it to 32 bits on LP64 and LLP64 platforms). Use that, including using it as a replacement for SMB's PTR_DIFF().
* Move some smb prototypes in smb.hFrancois-Xavier Le Bail2018-03-161-0/+2
| | | | | Moreover: Add a const qualifier
* Fix a bunch of de-constifications.Guy Harris2015-04-261-1/+1
|
* improve previous NDO conversionsDenis Ovsienko2014-04-031-0/+3
|
* NDOize SMB decoderDenis Ovsienko2014-04-021-1/+1
|
* justify min()/max() macros declarations and usageDenis Ovsienko2014-03-141-2/+0
| | | | | | | | | | | This change moves the macros to tcpdump-stdinc.h to make sure these are available without interface.h. It also dismisses two redundant macros MIN() and SMBMIN(). It is intended to fix the following Solaris compile error: Undefined first referenced symbol in file MIN print-zeromq.o
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-1/+0
| | | | | | Remove lots of $Header's and a few $Id's that all belong to the former CVS repository of tcpdump itself. These keywords have been frozen since the migration to git in late 2008.
* Correctly handle Unicode strings - skip padding to put them on a 2-byteguy2004-12-281-2/+2
| | | | | | | | boundary, and base the Unicode-vs-non-Unicode decision on the "strings are Unicode" bit in Flags2, except for those few strings that are always ASCII, rather than doing a heuristic check. Fix the padding in FindFirst2 requests.
* whitespace cleanupitojun2002-06-111-2/+2
|
* Bill Fenner's changes to clean up the SMB dissection somewhat and to addguy2002-01-171-28/+2
| | | | a lot of boundary checking.
* Eliminate some unused parameters.fenner2001-09-171-14/+8
| | | | | | | | | | | Use const more. Use EXTRACT_* macros more. Use TCHECK* more. Use tok2str() to replace some home-grown workalikes. smb: - Get rid of private types, use tcpdump-defined types - Rename fdata and fdata1 to smb_fdata and smb_fdata1 to avoid conflict with IRIX library function.
* more audit/style. fix a couple of signed/unsigned mixup,itojun2001-06-251-2/+2
| | | | printf type mismatch, as well as buffer overrun possibilities
* strinct prototype. now we are -Wstrict-prototype clean.itojun2001-06-251-8/+9
| | | | | couple of indent fixes (ts=8 sw=4) so that we can do a buffer overrun audit effectively.
* Give a bunch of files RCS and SCCS IDs.guy2000-12-171-0/+1
|
* * print-rt6.c: make IPv6 routing header printing work with new 2292bisitojun1999-12-221-1/+1
| | | | | | | | | | | API. * print-bgp.c: improve options printing. ugly code exists for unaligned option parsing (need some fix). * const poisoning in SMB decoder. * make dump format back to original. someone may want to add an option to do ascii printing, but keep the default behavior as is for scripts used in many places. * -Wall -Werror clean checks.
* patches from Andrew Tridgell <tridge@linuxcare.com> to add decoding of SMB ↵assar1999-11-211-0/+152
packets