Commit Graph

99 Commits

Author SHA1 Message Date
Bill Meier c544c20956 Fix various typos and spelling errors (mostly in text strings)
svn path=/trunk/; revision=27050
2008-12-18 19:08:49 +00:00
Bill Meier 33c99f44fd Fix typos and spelling (mostly in text strings)
svn path=/trunk/; revision=27028
2008-12-17 00:08:38 +00:00
Jaap Keuter 426e6c1700 From David Aggeler:
Added Tag matching based on masks for remaining tags in the standard. 
Now all tags (except private tags) should be supported.

svn path=/trunk/; revision=26662
2008-10-31 22:59:14 +00:00
Stig Bjørlykke d0e33bc3c5 Fix some "format not a string literal and no format arguments" warnings.
svn path=/trunk/; revision=26646
2008-10-31 14:07:23 +00:00
Anders Broman 3893c32000 From David Aggeler:
Reworked the item creation.

svn path=/trunk/; revision=26424
2008-10-12 21:35:23 +00:00
Stig Bjørlykke 813c6102b3 Really make it compile. Someone should have a look at this.
svn path=/trunk/; revision=26417
2008-10-11 15:16:37 +00:00
Anders Broman 08b51ea542 Just try to make it compile.
svn path=/trunk/; revision=26416
2008-10-11 15:00:39 +00:00
Anders Broman 93a0edf6dd From David Aggeler:
packet-dcm, improved DICOM Tag support, misc fixes.

svn path=/trunk/; revision=26413
2008-10-11 14:25:02 +00:00
Stig Bjørlykke 9ef96188ee From Shinsuke SUZUKI (bug 2789):
Remove some non-ASCII characters.

svn path=/trunk/; revision=25972
2008-08-09 16:24:39 +00:00
Anders Broman 8db1e7a8b2 From David Aggeler:
Follow-up from SVN 25825 check in

The g_slist_free() is really needed in export_object.c, otherwise, the export
list has false (repetitive) entries in it, that cause a crash when selecting
them.

Whether false entries are in the list, only depends on the speed of the export
processing, since this tap is 

Replaced all guchar with gchar. This should eliminate the warnings on solaris. 
I guess I used the wrong reference.

Added patch for 'Authors' in case I need to add myself to the list.

svn path=/trunk/; revision=25834
2008-07-25 22:58:05 +00:00
Jeff Morriss 9bacbeceb5 static variable declarations don't belong in header files
svn path=/trunk/; revision=25830
2008-07-25 15:42:46 +00:00
Jeff Morriss 4e19755680 Remove an unused variable and cast a string constant into a guchar. Also add newline at the end of the file.
svn path=/trunk/; revision=25829
2008-07-25 15:06:52 +00:00
Anders Broman 72c2f913e5 Try to fix some of the warnings.
svn path=/trunk/; revision=25827
2008-07-25 14:54:12 +00:00
Anders Broman 6dd20d987d Try to fix some of the warnings.
svn path=/trunk/; revision=25826
2008-07-25 14:19:36 +00:00
Anders Broman e9a6106af5 From David Aggeler:
multiple PDV per PDU support
 - Support multiple PDVs per PDU
 - Better summary, in PDV, PDU header and in INFO Column, 
   e.g. show commands like C-STORE
 - Fixed Association Reject (was working before my changes)
 - Fixed PDV Continuation with very small packets. Reduced minimum packet
   length from 10 to 2 Bytes for PDU Type 4 
 - Fixed PDV Continuation. Last packet was not found correctly.
 - Fixed complilation warning (build 56 on solaris)
 - Fixed tree expansion (hf_dcm_xxx)
 - Added expert_add_info() for Assoctiation Reject
 - Added expert_add_info() for Assoctiation Abort
 - Added expert_add_info() for short PDVs (i.e. last fragment,
   but PDV is not completed yet)
 - Clarified and grouped data structures and its related code 
   (dcmItem, dcmState) to have consistent _new() & _get() functions 
   and to be be according to coding conventions 
 - Added more function declaration to be more consistent
 - All dissect_dcm_xx now have (almost) the same parameter order
 - Removed DISSECTOR_ASSERT() for packet data errors.
   Not designed to handle this.
 - Handle multiple DICOM Associations in a capture correctly, 
   i.e. if presentation contexts are different.

svn path=/trunk/; revision=25824
2008-07-25 13:36:58 +00:00
Anders Broman 4a233c45a7 From David Aggeler:
DICOM dissector bugfixes and features

svn path=/trunk/; revision=25823
2008-07-25 13:20:18 +00:00
Anders Broman 29cf34d1c2 Apply yet another set of the optimization patches:
janitor work, replace col_add_fstr/ col_set_fstr.

svn path=/trunk/; revision=23411
2007-11-09 05:57:45 +00:00
Guy Harris 1bc049906a Add some GCC warnings to the standard set, and add some others to the
--enable-extra-gcc-checks set.

If we turn on -pedantic, try turning on -Wno-long-long as well, so that
it's not *so* pedantic that it rejects the 64-bit integral data types
that we explicitly require.

Constify a bunch of stuff, and make some other changes, to get rid of
warnings.

Clean up some indentation.

svn path=/trunk/; revision=21526
2007-04-23 10:59:26 +00:00
Stephen Fisher 82b2c83149 Fix some more warnings
svn path=/trunk/; revision=21273
2007-03-29 18:09:13 +00:00
Stephen Fisher 8fd3ee0560 Remove almost all of the casts I committed recently and in place of
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it.


svn path=/trunk/; revision=21253
2007-03-28 21:55:11 +00:00
Stephen Fisher ab8f589336 Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors
svn path=/trunk/; revision=21233
2007-03-27 22:50:11 +00:00
Jörg Mayer dd26a7021b nikai@nikai.net:
Remaining fixes from:
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1225

svn path=/trunk/; revision=19895
2006-11-14 20:32:29 +00:00
Ronnie Sahlberg 2d1bb39121 change the signature for the get_pdu_len() function pointer passed to tcp_dissect_pdus() to also include a packet_info pointer.
there are many reasons why some protocols actually need to be able to access the pinfo structure while determining the pdu size



svn path=/trunk/; revision=19751
2006-10-31 09:29:07 +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
Jörg Mayer a052b3a98b packet-bgp.c: Fix incorrect use of g_snprintf return value
mp_addr_to_str was unnecessary 'complex' - simplified it
packet-dns.c: Fix incorrect use of g_snprintf return value
packet-dcm.c: Fix incorrect use of g_snprintf return value
        Someone who understands the protocol should look at the
        "vr, tr might be used uninitialized..." warning.
packet-x11.c: Fix incorrect use of g_snprintf return value
packet-kerberos.c: Fix incorrect use of g_snprintf return value
        Someone should take a look at the
        "longjump might clobber ..." messages
packet-diameter.c: Fix incorrect use of g_snprintf return value
        Get rid of unsigned < 0 check
packet-pgm.c: Fix incorrect use of g_snprintf return value
packet-nbns.c: Fix incorrect use of g_snprintf return value
packet-winsrepl.c: Collateral damage to packet-nbns.c fix
packet-netbios.c: Collateral damage to packet-nbns.c fix
packet-netbios.h: Collateral damage to packet-nbns.c fix
packet-kerberos.c: Collateral damage to packet-nbns.c fix
packet-nbipx.c: Collateral damage to packet-nbns.c fix


svn path=/trunk/; revision=17065
2006-01-20 21:18:18 +00:00
Ronnie Sahlberg 6beaa5ce81 get rid of some strcpy
svn path=/trunk/; revision=16234
2005-10-16 00:14:19 +00:00
Ronnie Sahlberg f00c521c19 remove some strcpy()
svn path=/trunk/; revision=15849
2005-09-17 12:16:11 +00:00
Ronnie Sahlberg 44db2c5665 sprintf removal
svn path=/trunk/; revision=15550
2005-08-27 00:25:32 +00:00
Ronnie Sahlberg eb994de4cb change a g_malloc() that was never released into ep_alloc()
this function would always leak memory when called.

this fixes a memleak in dcm



svn path=/trunk/; revision=15352
2005-08-14 05:50:14 +00:00
Ronnie Sahlberg a6af4ea93e gmemchunk -> se_alloc() improvements
svn path=/trunk/; revision=15323
2005-08-12 23:29:19 +00:00
Ronnie Sahlberg ec3ab9ec3e rename ep_tvb_get_string() to tvb_get_ephemeral_string() asnd update the documentation in README.developer
svn path=/trunk/; revision=15270
2005-08-10 13:41:13 +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
Guy Harris 4ce075fb78 Use a NULL value for di->xfer as an indication that we don't know the
transfer context; that way, we don't have to make "di->xfer" a "const"
pointer, and can thus pass it to "g_free()" (if non-null) without
the compiler whining at us.

Note that telling the user to "click on ASSOC request" is not the best
thing to do, unless we simply cannot determine the right ASSOC request
to click on.

svn path=/trunk/; revision=15238
2005-08-06 09:18:52 +00:00
Ulf Lamping 149786d563 replace malloc and alike calls by their GLib pendants -> g_malloc
svn path=/trunk/; revision=15232
2005-08-05 23:58:58 +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
Ronnie Sahlberg 0d7a2abbc7 some more memification of tvb_get_string() no obvious memleaks fixed this time :-(
svn path=/trunk/; revision=15131
2005-07-28 09:47:28 +00:00
Jörg Mayer 34493e8f9e char -> const char warning fixes
svn path=/trunk/; revision=15126
2005-07-28 07:53:38 +00:00
Ulf Lamping fdb5b1af02 just to get things straight: a dissector should *never* do any g_assert() calls!
in a simple approach, I've replaced all g_assert() and g_assert_not_reached() calls by their exception throwing counterparts DISSECTOR_ASSERT() and DISSECTOR_ASSERT_NOT_REACHED()

this will replace application crash by showing a dissector bug, which is the desired behaviour

there were some g_assert calls in the protocol registering functions, which might not be acting as expected now, but to be able to simply search for g_assert in the future I've replaced that calls too

one g_assert remained, the one when someone throws an unknown exception "into" packet_frame.c, but IMHO this one should remain.

svn path=/trunk/; revision=14608
2005-06-10 18:28:22 +00:00
Gerald Combs 861dc4e340 More bug fixes from Steve Grubb. See bug 217 for details.
svn path=/trunk/; revision=14496
2005-05-30 20:58:20 +00:00
Guy Harris fff7cd2f34 Change some data types, and add initializations, to squelch compiler
warnings.

Fix indentation.

svn path=/trunk/; revision=14315
2005-05-05 11:05:15 +00:00
Gerald Combs 313d9105f3 From Rich Coe:
- fix memory leak when Assoc packet is processed repeatedly in ethereal

 - removed unused partial packet flag

 - added better support for DICOM VR
     - sequences
     - report actual VR in packet display, if supplied by xfer syntax 
     - show that we are not displaying entire tag string with '[...]',
       some tags can hold up to 2^32-1 chars

 - remove my goofy attempt at trying to get access to the fragmented packets
   (anyone have an idea on how to fix this ???)

 - process all the data in the Assoc packet even if display is off

 - limit display of data in Assoc packet to defined size of the data even
   if reported size is larger

 - show the last tag in a packet as [incomplete] if we don't have all the data

 - added framework for reporting DICOM async negotiation (not finished)
   (I'm not aware of an implementation which currently supports this)

 - still need to fix display of continuation packets

svn path=/trunk/; revision=14280
2005-05-02 21:56:40 +00:00
Gerald Combs 5caccdd94e Change a bunch of instances where we manually fetch a string and call
proto_tree_add_string() to just use proto_tree_add_item().  Add a note
about a memory leak.  Fixes bug 65.


svn path=/trunk/; revision=14117
2005-04-17 22:08:22 +00:00
Ulf Lamping 2f836c20a8 fix a typo: lenght -> length
This seems to be a "more common" typo, fixed it 13 times throughout the code ...

svn path=/trunk/; revision=13452
2005-02-20 22:36:34 +00:00
Anders Broman 851ecd2ac4 From Jon Ringle:
1) Added a setup_frame parameter to conversation_t
2) Used the conversation_t next to maintain a list of conversations with the 
same src/dest tuple but different setup_frame number.
3) Changed the signature of find_conversation() and conversation_new() to pass 
in the frame number.
4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image 
are present, and T.38 conversation if only m=image is present. I expect that 
RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 
packets.

svn path=/trunk/; revision=13243
2005-02-02 20:07:03 +00:00
Ulf Lamping dc0fc1896e use GLib's pointer to int conversion macros to prevent compiler warnings
svn path=/trunk/; revision=12830
2004-12-24 23:17:38 +00:00
Guy Harris bcaceaf20e From Rich Coe:
fix the heuristic code -- sometimes a conversation already
	    exists;
	fix the dissect code to display all the tags in the PDU.

svn path=/trunk/; revision=12504
2004-11-10 10:28:43 +00:00
Guy Harris 64394fdef2 Fix a typo.
svn path=/trunk/; revision=12312
2004-10-16 07:39:37 +00:00
Jörg Mayer e869dbb17d Trivial warning fixes:
- comma at end of enum
- function declarations with empty args instead of void
- c++ style comments

svn path=/trunk/; revision=11492
2004-07-23 23:28:08 +00:00
Gilbert Ramirez 669db206cb Move dissectors to epan/dissectors directory.
Also move ncp222.py, x11-fields, process-x11-fields.pl,
make-reg-dotc, and make-reg-dotc.py.

Adjust #include lines in files that include packet-*.h
files.

svn path=/trunk/; revision=11410
2004-07-18 18:06:47 +00:00