Commit Graph

16092 Commits

Author SHA1 Message Date
Ronnie Sahlberg b46a5611ed add a pointer to the wiki for documentation of this protocol
svn path=/trunk/; revision=16433
2005-11-08 08:41:42 +00:00
Ronnie Sahlberg 40b13e337f add dissection of the known parts of negotiate protocol
svn path=/trunk/; revision=16432
2005-11-08 08:40:32 +00:00
Guy Harris 31a44d4bfc When using GCC, compile with -Wpointer-arith, to catch code that some
other C compilers can't handle.

svn path=/trunk/; revision=16431
2005-11-08 04:03:50 +00:00
Guy Harris af00219b1b Use "proto_tree_add_item()", not "proto_tree_add_bytes()", if you're
just supplying the result of "tvb_get_ptr()" with the same tvbuff,
offset, and length as the byte array.

Get rid of an unused variable.

Set svn:keywords and svn:eol-style appropriately.

svn path=/trunk/; revision=16430
2005-11-07 22:50:34 +00:00
Gerald Combs b1b1c50f1e Fix an ftsanity.py error.
svn path=/trunk/; revision=16429
2005-11-07 21:58:27 +00:00
Gerald Combs 062621786f Fix bug 575, from Menno Andriesse:
In two functions that call proto_tree_add_bytes I forgot the
  'tvb_get_ptr' function, the argument was 'FALSE' instead.  This gave
  a predictable 'NULL' pointer bug...

Fix an ftsanity.py error.  Fixup whitespace.


svn path=/trunk/; revision=16428
2005-11-07 21:54:08 +00:00
Ronnie Sahlberg 66d99c3eed begin dissecting the Find response packet
svn path=/trunk/; revision=16427
2005-11-07 21:19:59 +00:00
Guy Harris 6c521f90f5 The return value of tvb_get_ptr() is a const ptr; assign it to a const
ptr.

The answer to the question
"??????????????????????????????????????????????????????????????????" is
"No - the return value of tvb_get_ptr() is a reference, not an allocated
copy, and it cannot be freed and doesn't need to be freed."

svn path=/trunk/; revision=16426
2005-11-07 21:10:52 +00:00
Ronnie Sahlberg 39ecd87667 dissect the treeconnect request packet
svn path=/trunk/; revision=16425
2005-11-07 21:00:09 +00:00
Ronnie Sahlberg 8012fd3cd9 add request response matching so we can start passing info levels around from request to response and start dissecting some of the commands
svn path=/trunk/; revision=16424
2005-11-07 20:32:27 +00:00
Guy Harris 262a414f41 The problem wasn't that <sys/stat.h> wasn't being included, the problem
was that file_util.h wasn't in the distribution tarball, so it couldn't
be included - it handles including <sys/stat.h>.

svn path=/trunk/; revision=16423
2005-11-07 20:14:40 +00:00
Ulf Lamping 91e66afb84 add file_util.h so distcheck might work
svn path=/trunk/; revision=16422
2005-11-07 19:51:16 +00:00
Anders Broman 708d793e63 Display MSW and LSW as NTP timestamp as well.
svn path=/trunk/; revision=16421
2005-11-07 19:40:55 +00:00
Anders Broman a9a63056df Dissect NSAP
svn path=/trunk/; revision=16420
2005-11-07 19:39:38 +00:00
Anders Broman b2ec8c9ca4 Bug fix to dissection of NSAP E164 Country codes
svn path=/trunk/; revision=16419
2005-11-07 19:39:02 +00:00
Anders Broman 199214844b Martin Hill has examined packet-dec-dnart.c and found some errors and made some improvements.
svn path=/trunk/; revision=16418
2005-11-07 19:37:10 +00:00
Anders Broman 8586ce47d2 From Stig Bjørlykke
A new dissector for P_Mul (ACP142) http://www.jcs.mil/j6/cceb/acps/Acp142.pdf

svn path=/trunk/; revision=16417
2005-11-07 19:35:48 +00:00
Guy Harris 60c4c050d0 You need <sys/stat.h>, if present, to use fstat().
svn path=/trunk/; revision=16416
2005-11-07 17:18:52 +00:00
Guy Harris 688a256884 The standard <dirent.h> routines to rewind and close a directory are
rewinddir() and closedir().

Clean up indentation.

svn path=/trunk/; revision=16415
2005-11-07 17:12:43 +00:00
Ronnie Sahlberg 575907f024 put the error code in col info
svn path=/trunk/; revision=16414
2005-11-07 08:57:04 +00:00
Ronnie Sahlberg 0b01ed88cb smb2 updates, most of the header is now decoded properly
svn path=/trunk/; revision=16413
2005-11-07 08:39:23 +00:00
Guy Harris ca781ff145 Use eth_dir_open(), not g_dir_open(); g_dir_open() isn't available in
GLib 1.2[.x].

svn path=/trunk/; revision=16412
2005-11-07 08:36:25 +00:00
Guy Harris 8e5823e0fe This is UN*X-only, so it doesn't need to use the eth_close() wrapper;
close() will be available.

svn path=/trunk/; revision=16411
2005-11-07 08:35:28 +00:00
Guy Harris db9fba20b4 Use <wiretap/file_util.h> to include "file_util.h"; otherwise, the
include fails as we don't do -Iwiretap.

If we have it, include <sys/stat.h> in epan/filesystem.c - we need it
for stat() and the macros and structures it uses.

svn path=/trunk/; revision=16410
2005-11-07 02:47:09 +00:00
Guy Harris 7474bc0f13 If we're using libz, make file_open() construct the open() flag
argument, rather than requiring the caller to get the open() flag and
the fopen() flag in sync.  That also means that if we're *not* using
libz, it can just be a wrapper around eth_fopen().

We need to include <fcntl.h>, at least on UN*X, to get open() declared
and the O_ flags defined.

svn path=/trunk/; revision=16409
2005-11-07 02:45:19 +00:00
Guy Harris b7407b5a2a Fix a typo.
svn path=/trunk/; revision=16408
2005-11-07 02:38:34 +00:00
Guy Harris 15cd2aed30 Include <wiretap/file_util.h> to declare the eth_ routines.
svn path=/trunk/; revision=16407
2005-11-07 02:35:02 +00:00
Ulf Lamping 937a50243c as mkstemp makes trouble and is only used once in util.c, move definition from file_util.h to util.c for now
this hopefully fixes the mkstemp problem

svn path=/trunk/; revision=16406
2005-11-07 00:20:20 +00:00
Guy Harris 5990cb095a Get rid of CRs and set svn:eol-style to native, so that Windows machines
get the CRs and UN*X machines don't.  Also set svn:keywords to Id to
expand RCS IDs.

svn path=/trunk/; revision=16405
2005-11-06 23:21:03 +00:00
Ulf Lamping cc3d9cb78f Obviously, <glib/gstdio.h> is available since GLib version 2.6 only ...
svn path=/trunk/; revision=16404
2005-11-06 23:11:49 +00:00
Ulf Lamping c3187174bf replace *a lot* of file related calls by their GLib counterparts. This is necessary for the switch to GTK 2.6 (at least on WIN32).
to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place.

deleted related things from config.h.win32

As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon.

svn path=/trunk/; revision=16403
2005-11-06 22:43:25 +00:00
Ronnie Sahlberg 4e954caec3 dissect some of the session setup and the security blob for smb2
svn path=/trunk/; revision=16402
2005-11-06 13:04:57 +00:00
Ronnie Sahlberg 3924f02631 dissect the smb2 request/response flag
svn path=/trunk/; revision=16401
2005-11-06 11:55:17 +00:00
Ronnie Sahlberg f449406fee dissect the smb2 tree id
svn path=/trunk/; revision=16400
2005-11-06 11:46:10 +00:00
Ronnie Sahlberg c44a9aab72 some smb2 updates
svn path=/trunk/; revision=16399
2005-11-06 05:32:01 +00:00
Ronnie Sahlberg dcfb3758cc add an empty dissector for SMB2
svn path=/trunk/; revision=16398
2005-11-06 04:18:13 +00:00
Anders Broman 2916d12d76 Packet-amr Register as "AMR" not "amr".
Add Dynamic PT:s mimestring  to rtp_info if avalable.
Use Dynamic PT:s mime string to find clock rate.

svn path=/trunk/; revision=16397
2005-11-05 21:38:22 +00:00
Ronnie Sahlberg 4a92dc0bc9 get rid of some strcat
svn path=/trunk/; revision=16396
2005-11-05 20:32:33 +00:00
Ronnie Sahlberg c7aee8324f get rid of an array and dissect a bitmask properly
get rid of some strcat()s


svn path=/trunk/; revision=16395
2005-11-05 02:03:21 +00:00
Ronnie Sahlberg b6ae69cfcf remove an array and some strcat from ncp
svn path=/trunk/; revision=16394
2005-11-05 01:23:06 +00:00
Ronnie Sahlberg b1b51ed1b0 remove an array and the remaining strcat from ospf
svn path=/trunk/; revision=16393
2005-11-04 23:03:26 +00:00
Ronnie Sahlberg 909764f6b2 get rid of some strcat and a stackbased array
svn path=/trunk/; revision=16392
2005-11-04 21:55:23 +00:00
Ronnie Sahlberg e07f132280 from Metze
some winsrepl updates


svn path=/trunk/; revision=16391
2005-11-04 21:22:21 +00:00
Ronnie Sahlberg 0cafcb3e50 From Menno Andriesse
New protocol : STANAG 5066

I changed it from being a plugin to a builtin dissector
and also changed a couple of small bugs


svn path=/trunk/; revision=16390
2005-11-04 21:14:33 +00:00
Anders Broman 857077708b Fix a typo and change TLLI representation to HEX.
svn path=/trunk/; revision=16389
2005-11-03 19:14:52 +00:00
Jörg Mayer 65528c765a Update to samba svn 11484
svn path=/trunk/; revision=16388
2005-11-03 15:23:09 +00:00
Guy Harris 2447b390d2 "dissect_cmp_http()" doesn't check for a valid packet (it doesn't need
to, it's selected by the media-type string, not something unreliable
such as a port number), and doesn't return anything, so give it the
right type and don't declare it as a "new-style" dissector.

svn path=/trunk/; revision=16387
2005-11-03 04:35:39 +00:00
Guy Harris 81b9490d4c Get rid of (valid) warning about uninitialized variable, and clean up
indentation.

svn path=/trunk/; revision=16386
2005-11-03 04:33:51 +00:00
Guy Harris 542381825f Get rid of no-longer-used code (the list of plugins is now just a tab in
Help->About, not a separate dialog from Help->About Plugins).

svn path=/trunk/; revision=16385
2005-11-03 04:32:11 +00:00
Guy Harris 30b5f0f493 Fix usage of PRI[du]64 - they just replace the "letter" part of the
format, they don't include the "%".

svn path=/trunk/; revision=16384
2005-11-03 04:30:35 +00:00