Commit Graph

40 Commits

Author SHA1 Message Date
Jaap Keuter 5f955a0fcc From Albert Chin:
Patch attached to convert usage of ntohl() -> g_ntohl(). On HP-UX,
ntohl() isn't available unless you -D_XOPEN_SOURCE_EXTENDED but there
are other uses of g_ntohl().

svn path=/trunk/; revision=19844
2006-11-07 07:39:16 +00:00
Jörg Mayer b9c69db9d3 Remove some // comments.
Fix a warning about nested comments.

svn path=/trunk/; revision=19828
2006-11-06 19:56:11 +00:00
Jaap Keuter 7ded21f336 Squelch compiler warnings
svn path=/trunk/; revision=19597
2006-10-18 19:42:10 +00:00
Ulf Lamping 4a03300106 distinguish between things "ToBeDone" and "NoSpecificationAvailable" as some DCOM things are just unknown and cannot be implemented therefore
svn path=/trunk/; revision=19174
2006-09-07 20:30:48 +00:00
Ulf Lamping 4ad1f977d2 add a new this/that flag value
svn path=/trunk/; revision=19066
2006-08-28 21:14:36 +00:00
Guy Harris 7cb6f60b18 Fix some format strings and format string arguments.
svn path=/trunk/; revision=18957
2006-08-19 03:01:15 +00:00
Ulf Lamping 7d04019388 some further work on the GUID/UUID resolvings
most of the relevant code moved to guid_utils
lot of corresponding code cleanup in packet-dcerpc.c
still using GHashTable
still not using a manuf like file

svn path=/trunk/; revision=18939
2006-08-17 19:09:41 +00:00
Ulf Lamping de0594b9a5 various UUID/GUID based changes.
I think I've changed all corresponding appearances from FT_STRING to FT_GUID, so assert the FT_ type as it should only be a FT_GUID now.

Add a generic implementation in guid_utils.h to have a way to store data about GUID to name resolving (something like value_string for e.g. int). It might be better to have a single registry for all GUID's of all dissectors and implement the GUID name resolving into the proto_tree_add... functions.

svn path=/trunk/; revision=18935
2006-08-16 23:13:26 +00:00
Ulf Lamping b2751079ac various minor DCOM dissection enhancements:
- add a generic guid register to dissect UUID's (move this to a seperate file?)
- this enables us to set some known names for special UUID's
- use standard DCOM fields for IID and alike in remunk.c
- cleanup dcom_protseq_vals handling
- some FT_STRING to FT_GUID changes

svn path=/trunk/; revision=18904
2006-08-14 23:39:48 +00:00
Ulf Lamping d0aed5f920 add an experimental DCOM object "database" based on the exchanged interface pointers
add a lot more PROFINET CBA dissection output based on these DCOM context information
still need some improvements, e.g. dissection uses a simple (slow) linear list search
changes are fuzz-tested

svn path=/trunk/; revision=18882
2006-08-11 19:15:12 +00:00
Ulf Lamping 692a3adfbb remove two old comments
svn path=/trunk/; revision=18632
2006-07-01 12:13:54 +00:00
Ulf Lamping 690bfd0bff add dissection of custom marshalled OBJREF's (as far as known)
svn path=/trunk/; revision=18596
2006-06-28 18:51:24 +00:00
Ulf Lamping 39e7f020e6 fix the hresult "filter" fields
svn path=/trunk/; revision=18469
2006-06-15 11:42:47 +00:00
Ulf Lamping aa748fc102 dcom_tvb_get_nwstringz0(): convert output to hexdump if the string contains nonprintable characters
svn path=/trunk/; revision=18453
2006-06-13 18:18:53 +00:00
Ronnie Sahlberg feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Ulf Lamping cf17ccd7ac fix VARIANT BOOL meaning
svn path=/trunk/; revision=18095
2006-05-05 19:29:50 +00:00
Ulf Lamping 384c960017 bring HRESULT values in the right order
svn path=/trunk/; revision=17840
2006-04-07 22:05:34 +00:00
Ulf Lamping 6ea4c2745e add missing IDispatch methods and related dissections
svn path=/trunk/; revision=17658
2006-03-17 21:41:56 +00:00
Ronnie Sahlberg ebc0197755 remove two redundant strcpy so they dont show up as noice for grep strcpy *.c
svn path=/trunk/; revision=16231
2005-10-15 23:26:32 +00:00
Guy Harris f6ef22c553 Have show_exception() take a "const char *" as its exception message,
and not free the string to which it points.  Pass to
REPORT_DISSECTOR_BUG() strings allocated with ep_strdup_printf(), so
that they're freed automatically.

svn path=/trunk/; revision=16039
2005-09-28 16:16:37 +00:00
Ulf Lamping 57d099a0c2 some things fixed, leftover from code cleanup (thanks to the buggy MSVC dependencies)
svn path=/trunk/; revision=15755
2005-09-11 17:15:00 +00:00
Ulf Lamping 642467ad5c I'm adding the "Expert Info" prototype now, as it seems to be in a state where others might have a look and probably already find it useful :-). Anyway, we can easily disable it at one or two places in the code if it get's in our way of a new release.
Please see: http://wiki.ethereal.com/Development/ExpertInfo for a complete overview of the intended feature and it's current state of implementation.

While I'm working on this, I've also added some more status result codes to the DCE/RPC and DCOM dissectors.

svn path=/trunk/; revision=15754
2005-09-11 16:55:34 +00:00
Ulf Lamping 0dc9fb3d4a various code cleanup:
-use g_snprintf instead of sprintf and snprintf
-use g_strdup_printf where appropriate
-remove #include "snprintf.h" (as only g_snprintf should be used)
-replace some more alloc/realloc/calloc/free with their glib pendants

svn path=/trunk/; revision=15264
2005-08-08 18:50:39 +00:00
Jörg Mayer 5602f5bb83 Make some funtions static. More char -> const char warning fixes
svn path=/trunk/; revision=15146
2005-07-30 01:01:02 +00:00
Jörg Mayer 7949c7f31c char -> const char warning fixes
svn path=/trunk/; revision=15079
2005-07-26 08:01:16 +00:00
Guy Harris 554f620001 Constify to remove a bunch of warnings. Add some casts to squelch
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst
warnings.

In the TACACS dissector, clean up the variables used in option parsing
to avoid some const-to-nonconst warnings.

Clean up some white space.

svn path=/trunk/; revision=15043
2005-07-24 19:01:28 +00:00
Ulf Lamping 46ff66522f prevent "Dissector Bug": prevent a string processing of length 0
svn path=/trunk/; revision=14516
2005-06-01 19:19:40 +00:00
Ulf Lamping e821e8a1f2 fix handling, if ArraySize of a BSTR is 0,
replace a g_assert by DISSECTOR_ASSERT

svn path=/trunk/; revision=14503
2005-05-31 08:02:24 +00:00
Ulf Lamping 772af896b9 add a tvb_ensure_bytes_exist() to prevent a dissector bug
svn path=/trunk/; revision=14502
2005-05-30 22:40:55 +00:00
Ulf Lamping 5fd2ecb1d5 add values for STDOBJREF flags
svn path=/trunk/; revision=14428
2005-05-24 20:00:14 +00:00
Gerald Combs 01270e7e44 Don't call proto_item_set_len() with a negative length. Found during
fuzz testing.

svn path=/trunk/; revision=14242
2005-04-30 16:08:29 +00:00
Guy Harris 75e4d0a2ce Use the 64-bit integer fetch routines to support 64-bit NDR integers.
svn path=/trunk/; revision=13198
2005-01-29 20:39:14 +00:00
Ulf Lamping aa139758f9 add new function dissect_dcerpc_uuid_t and let dissect_ndr_uuid_t call it
svn path=/trunk/; revision=13006
2005-01-12 21:20:50 +00:00
Guy Harris b40e2e4dfb Get rid of extra include of <string.h>.
svn path=/trunk/; revision=12794
2004-12-20 22:51:05 +00:00
Ulf Lamping da27f1fac3 Removed some of the unix related warnings. I'll remove the remaining DCOM related ones in the next days, step by step (by looking at the buildbot output).
svn path=/trunk/; revision=12793
2004-12-20 22:29:24 +00:00
Guy Harris 65d7e1d97c Include <string.h> to declare various functions.
svn path=/trunk/; revision=12792
2004-12-20 22:25:13 +00:00
Ronnie Sahlberg 1574f4dd5e g_strescape only takes one parameter in glib 1.x
this makes ethereal compile for those of us that are not on the bleeding edge.
(gtk1 is much better anyway)


svn path=/trunk/; revision=12785
2004-12-20 08:44:10 +00:00
Ulf Lamping 2b02b27b29 add some IRemUnknown dissectors
svn path=/trunk/; revision=12782
2004-12-19 16:49:34 +00:00
Ulf Lamping e3f96e79e7 add a lot of dissect stuff to the OXID resolver, moved some details of the DUALSTRINGARRAY to packet-dcom.c
svn path=/trunk/; revision=12779
2004-12-19 16:13:05 +00:00
Ulf Lamping ea0baf468e (on behalf of the PROFIBUS Nutzerorganisation e.V. Deutschland):
another part of the PROFINET dissectors (PN-CBA, including a lot of generic DCOM dissection) still some work to be done ...

svn path=/trunk/; revision=12776
2004-12-19 13:46:09 +00:00