Commit Graph

84 Commits

Author SHA1 Message Date
Bill Meier 7aaadd9bec Fix some warnings reported by gcc -Wshadow ...
svn path=/trunk/; revision=25616
2008-06-27 04:52:56 +00:00
Stig Bjørlykke 23b0a5d496 Include string.h
svn path=/trunk/; revision=25262
2008-05-09 12:54:49 +00:00
Anders Broman 1cc7c72db6 Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25261
2008-05-09 11:59:44 +00:00
Stig Bjørlykke 4c7d9c8de3 Added missing array for hf_alcap_pssiae_max_len and hf_alcap_ssiae_max_len.
svn path=/trunk/; revision=24515
2008-03-01 10:44:00 +00:00
Ronnie Sahlberg ee6c98b8b2 update to new signature for string keyed trees
svn path=/trunk/; revision=23737
2007-12-04 03:27:27 +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
Ronnie Sahlberg d5d5159b6d From Sebastien Tandel
fixes for various compiler warnings

svn path=/trunk/; revision=21210
2007-03-26 11:06:26 +00:00
Jörg Mayer 5b99f21735 Florent DROUIN <florent.drouin@alcatel.fr>:
Fix http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1077

svn path=/trunk/; revision=19074
2006-08-29 16:31:00 +00:00
Ronnie Sahlberg 8ce8e719e0 rename some structures and defines from the se_tree to the emem_tree prefix
svn path=/trunk/; revision=18894
2006-08-14 08:29:29 +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
Guy Harris bb0bd36d00 Constify some stuff, to eliminate compiler warnings and to make a table
that isn't written const.

svn path=/trunk/; revision=18044
2006-04-30 09:14:42 +00:00
Luis Ontanon b833808fb8 - Actually Fix Coverity CID 105 It is true...
- avoid derreferencing an uninitialized leg->dest_nsap

svn path=/trunk/; revision=17724
2006-03-24 23:26:10 +00:00
Ronnie Sahlberg 27de4cfd39 give se_trees names so that it is easier to debug and to log how often certain trees are accessed
svn path=/trunk/; revision=17587
2006-03-11 13:02:41 +00:00
Luis Ontanon f7b7ade499 Mark coverity's CID 105 as a false positive.
(The macro GET_MSG_TYPE does propper bounds checking but coverity doesn't consider it (may not be able to resolve the ?: operator) )


svn path=/trunk/; revision=17581
2006-03-11 11:55:49 +00:00
Luis Ontanon 40f5303a8e replace GHashTables with se_trees
svn path=/trunk/; revision=17579
2006-03-11 11:45:36 +00:00
Luis Ontanon 14c4d6fad9 From Jeff Morris,
Avoid an off by one error in dissect_fields_dnsea() and dissect_fields_onsea()

Fixes Bug 794


svn path=/trunk/; revision=17495
2006-03-07 14:02:25 +00:00
Luis Ontanon 0cfdbc3676 - contsify a variable in packet-alcap.c to see if a fake bug reported by coverty goes away.
- fix an off by one error in packet-telnet.c reported by coverty


svn path=/trunk/; revision=17487
2006-03-07 04:33:46 +00:00
Jörg Mayer f9a57f08d1 Bill Meier:
Spelling fixes.

svn path=/trunk/; revision=16956
2006-01-05 13:01:08 +00:00
Luis Ontanon 78ed00ce3a Keep a hash of call legs indexed by nsap:sugr and separate the leg tree code so that it can be called from others.
svn path=/trunk/; revision=16913
2005-12-28 19:38:33 +00:00
Luis Ontanon 0d2f2c33ff Avoid a warning if release_cause == 0
svn path=/trunk/; revision=16858
2005-12-19 19:20:31 +00:00
Anders Broman a9a63056df Dissect NSAP
svn path=/trunk/; revision=16420
2005-11-07 19:39:38 +00:00
Guy Harris 9ef5d2a10b Use NULL for pointers, 0 for integers, to squelch compiler warnings.
svn path=/trunk/; revision=16359
2005-10-29 21:48:37 +00:00
Luis Ontanon 34a310dbf2 Came up to be an almost complete rewrite:
- decode up to Q.2630.3
- (almost) all parameter fields have its own filter expression
- remove buffers from the stack
- add some color (expert info) to the tree


svn path=/trunk/; revision=16348
2005-10-28 12:02:13 +00:00
Luis Ontanon 756421af73 Add more information regarding call legs.
Make the release cause value filterable.


svn path=/trunk/; revision=15826
2005-09-15 19:30:44 +00:00
Ronnie Sahlberg 4256decaf2 make two thigs that should be value_strings value_strings
svn path=/trunk/; revision=15668
2005-09-02 09:16:50 +00:00
Jörg Mayer 4c19ac79de Trivial warning fixes
svn path=/trunk/; revision=15452
2005-08-20 02:03:40 +00:00
Luis Ontanon b197548513 Keep information about the call-leg so that all the messages of a leg can be filtered given a parameter of it.
Create the header to export the structures thyat hold that info.


svn path=/trunk/; revision=15430
2005-08-19 11:53:39 +00:00
Jörg Mayer b8d33c4add Fix >2600 warnings by doing char -> const char changes.
Additionally in dissectors/packet-ansi_map.c:
        Flag unused parameters as such and remove dummy
        param = param;
        statements.

svn path=/trunk/; revision=15114
2005-07-27 07:57:01 +00:00
Luis Ontanon b8a874be21 use ep_alloc instead of statically allocated buffers
svn path=/trunk/; revision=15030
2005-07-24 02:59:17 +00:00
Guy Harris ab797734dd Get rid of the private "my_match_strval()" routine in many dissectors;
add a "match_strval_idx()" routine that does the same thing, and have
"match_strval()" call it.

Make those routines, and "val_to_str()", return a "const" pointer. 
Update dissectors as necessary to squelch compiler warnings produced by
that.

Use "val_to_str()" rather than using "match_strval()" and then, if the
result is null, substituting a specific string.  Clean up some other
"match_strval()"/"val_to_str()" usages.

Add a null pointer check in the NDPS dissector's "attribute_value()"
routine, as it's not clear that "global_attribute_name" won't be null at
that point.

Make some global variables in the AFS4INT dissector local.

Make some routines not used outside the module they're in static.

Make some tables "static const".

Clean up white space.

Fix Gerald's address in some files.

svn path=/trunk/; revision=14786
2005-06-26 19:56:52 +00:00
Ulf Lamping 5b9f563924 packet-alcap.c(195) : warning C4090: 'return' : different 'const' qualifiers
svn path=/trunk/; revision=14767
2005-06-26 10:41:38 +00:00
Luis Ontanon 31f25f6a2e make sure that colifo gets set and put some other useful info there
svn path=/trunk/; revision=14582
2005-06-07 23:22:37 +00:00
Luis Ontanon fa91e9559d register the dissector so that it can be found
svn path=/trunk/; revision=14569
2005-06-06 18:53:43 +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