Commit Graph

148 Commits

Author SHA1 Message Date
Tomas Kukosa ec979a97fb - dissect_per_restricted_character_string() returns value in tvbbuff_t instead of char
- asn2eth:
  fixed CHOICE tag handling
  #.FN_PARS support for BIT STRING and all string types
  intersection of SIZE and FROM constraints for string is handled
- new asn2eth features used in h225 and h245
- PER dissectors regeneration

svn path=/trunk/; revision=15408
2005-08-18 14:32:49 +00:00
Jörg Mayer cee545d958 Albert Chin:
"config.h" should always be included first. However, lemon
        includes <stdio.h> first.


svn path=/trunk/; revision=15208
2005-08-04 20:41:52 +00:00
Jörg Mayer c17d44e122 Fix svn properties where needed:
Remove svn:executable
         Add svn:executable
         Add svn:eol-style
         Add svn:keywords


svn path=/trunk/; revision=15182
2005-08-02 05:58:15 +00:00
Jörg Mayer 5e83d1e015 Fix more "no previous declaration" warnings
svn path=/trunk/; revision=15172
2005-08-02 04:35:40 +00:00
Tomas Kukosa 49a0d4f697 - fix name handling of imported types
- #.FN_PARS implemented for TypeRef, SET, SEQUENCE, CHOICE

svn path=/trunk/; revision=15161
2005-08-01 08:40:13 +00:00
Anders Broman 40c841279f rom Maynard, Chris :
The attached patches, generated via  svn diff , correct various compiler 

& lint warnings, among them: 

 

lemon.c(2582) : warning C4090: '=' : different 'const' qualifiers


svn path=/trunk/; revision=15086
2005-07-26 09:52:50 +00:00
Ulf Lamping 9eedc98db7 Update to zlib 1.2.3
svn path=/trunk/; revision=15040
2005-07-24 14:16:54 +00:00
Jörg Mayer 30a8557868 More 'char*' -> 'const char*' changes to fix warnings.
svn path=/trunk/; revision=15015
2005-07-23 11:41:25 +00:00
Jörg Mayer e1c6d9ac3d Fix some warnings (and one of my previous 'fixes')
svn path=/trunk/; revision=14997
2005-07-22 17:57:40 +00:00
Jörg Mayer f67b00ad9a More 'char*' -> 'const char*' warning fixes
svn path=/trunk/; revision=14986
2005-07-22 07:55:51 +00:00
Ronnie Sahlberg 0ca30abe65 change the symbol dissect_ber_CHOICE back into dissect_ber_choice
svn path=/trunk/; revision=14980
2005-07-21 21:12:09 +00:00
Tomas Kukosa aa6a15ebde PLY package updated to version 1.6
svn path=/trunk/; revision=14951
2005-07-18 20:45:46 +00:00
Gerald Combs e1c7558d93 Point to the latest Windows library tag and versions.
svn path=/trunk/; revision=14923
2005-07-15 20:50:34 +00:00
Tomas Kukosa 1374231148 - PER helper functions for SET/SEQUENCE OF dissection were changed to have prototype similar to BER (per_sequence_t is used as parameter)
- asn2eth was updated to support new PER helper functions for SET/SEQUENCE OF
- #.FN_PARS implemented for SET/SEQUENCE OF and REAL
- PER SET/SEQUENCE OF field can be FT_UINTxx to display number of items
- PER dissectors regenerated

svn path=/trunk/; revision=14921
2005-07-15 15:20:40 +00:00
Jörg Mayer 5b442f2279 After doing "make maintainer-clean", "svn status --no-ignore | grep ^I"
returned quite a list of files. Add them to MAINTAINERCLEANFILES.

Whitespace changes (replace multiple spaces by TABs, in a few cases this
needed to be done at the beginning of Makefile lines.


svn path=/trunk/; revision=14891
2005-07-10 08:04:27 +00:00
Gerald Combs 5b7df3128b Make sure "which" is present before we verify our tools. Add "env" to
the list of programs to check.  Make sure our python scripts start with
"#!/usr/bin/env python" as recommended at

  http://www.python.org/doc/faq/library.html#how-do-i-make-a-python-script-executable-on-unix

svn path=/trunk/; revision=14871
2005-07-07 21:26:09 +00:00
Guy Harris 2b086353a4 Fix a spelling error.
svn path=/trunk/; revision=14865
2005-07-06 23:55:19 +00:00
Tomas Kukosa 3f36906e3a - #.FN_PARS implemented for BOOLEAN
- user defined body #.FN_BODY can be combined with default body using DEFAULT_BODY parameter (see e.g. H.225)

svn path=/trunk/; revision=14863
2005-07-06 16:15:12 +00:00
Tomas Kukosa ed7d638053 new directives #.PDU_NEW and #.REGISTER_NEW creating and registering PDU dissectors with new_dissector_t prototype
svn path=/trunk/; revision=14860
2005-07-05 21:42:13 +00:00
Tomas Kukosa 648c7863cd - #.FN_PARS support for ENUMERATED type
- cleanup unused parameters for some methods

svn path=/trunk/; revision=14856
2005-07-05 19:47:04 +00:00
Tomas Kukosa 5f2fd433ab - use tvb instead of offset and length in dissect_per_octet_string() for value returning
- asn2eth: #.FN_PARS support for OCTET STRING
- usage of #.FN_PARS in h225 and h245
- h225: ParallelH245Control support
- h245: better support of NonStandardParameter
- usage of MAX_OID_STR_LEN constant
- all PER dissectors regenerated

svn path=/trunk/; revision=14844
2005-07-04 09:35:25 +00:00
Tomas Kukosa f9d6448624 fix for BER string tags
svn path=/trunk/; revision=14800
2005-06-27 13:45:47 +00:00
Ronnie Sahlberg 3a51ba4293 make dissect_ber_choice take a guint* that will return the
index of the branch taken or -1  to make prettifications easier to implement.


change the signature of dissect_ber_choice and rename it to dissect_ber_CHOICE to catch all
occurences of the use of this function

update asn2eth to use the new name/signature

update all occurences of this function to the new name and new signature.



svn path=/trunk/; revision=14758
2005-06-26 05:48:50 +00:00
Gerald Combs b94621701c From Steve Grubb:
Fix bounds checking in lemon.c.  Fix up an if/else block in
packet-dcerpc-samr.c.  Fix hex printing in packet-gtp.c.


Fix other problems discovered by Steve:

Fix a bounds check in packet-isis-lsp.c.  Also, fix netmask printing
on non-little-endian machines.  Add a comment about adding a netmask
routine to to_str.c.  Add bounds checks to packet-ncp2222.inc.


All of these apply to bug 217.

svn path=/trunk/; revision=14627
2005-06-14 18:18:05 +00:00
Ulf Lamping 53ace04fe1 fix a problem if the tools have a space char in their path
svn path=/trunk/; revision=14588
2005-06-08 06:40:17 +00:00
Ulf Lamping a30f4fb400 add some general and some cygwin related comments
svn path=/trunk/; revision=14587
2005-06-08 06:33:49 +00:00
Tomas Kukosa a9cecadc53 - usage of dissect_per_null() and dissect_ber_null()
- new #.FN_PARS directive (implemented only for OCTET STRING and INTEGER now)
- set true value strings for named bits

svn path=/trunk/; revision=14575
2005-06-07 11:58:22 +00:00
Gilbert Ramirez c2454f0260 Add a "-G fields3" report which prints the bitmask of the field, and avoids
printing the blurb twice, like fields2 does.
Add a script, fsanity.py, to check sanity of FT definitions. Right now the
only check is for bitmasks for integer-like fields.

svn path=/trunk/; revision=14454
2005-05-27 15:13:09 +00:00
Gilbert Ramirez 0e80461b68 Add get_items_before(), to help analyze in the presence of
tunneled protocols.

svn path=/trunk/; revision=14380
2005-05-17 01:47:04 +00:00
Gilbert Ramirez d3cd8d93e8 Add get_hide() to return the value of the "hide" tag
in field attributes.

svn path=/trunk/; revision=14379
2005-05-16 23:21:01 +00:00
Anders Broman acdaec7d25 Forgott the lex.py file
svn path=/trunk/; revision=14360
2005-05-13 05:50:26 +00:00
Anders Broman 746eefbaf5 Add the asn2eth related files to extra-dist (I hope this is the right thing to do to get them into the SVN tarballs).
svn path=/trunk/; revision=14359
2005-05-13 05:47:56 +00:00
Gerald Combs 103103e21c Fix a quoting bug.
svn path=/trunk/; revision=14177
2005-04-24 00:37:08 +00:00
Gerald Combs ec5ec3768e Allow the locations of tethereal, editcap, and capinfos to be changed.
Limit the amount of VM the process can use (default 500 MB).  If we
can't save a capture in libpcap format, try again with the encapsulation
type set to "ether".

svn path=/trunk/; revision=14156
2005-04-20 21:00:03 +00:00
Tomas Kukosa 2d40f0464b - fix handling SET/SEQUENCE OF Type if type name contains hyphen
- raise warning if type is not renamed to name with the first letter uppercase
- raise warning if field is not renamed to name with the first letter lowercase

svn path=/trunk/; revision=14147
2005-04-20 12:39:34 +00:00
Gerald Combs cb95a1d842 Add fuzz-test.sh to the distribution.
svn path=/trunk/; revision=14126
2005-04-18 13:47:20 +00:00
Gerald Combs e39e982856 Add a description and usage message. Handle invalid capture files.
svn path=/trunk/; revision=14114
2005-04-17 18:55:42 +00:00
Gerald Combs 210225e22d Add a script based on the "menagerie-fuzz" buildbot test. Running
"./tools/fuzz-test.sh /path/to/capture/files/*" will iterate over the
specified capture files, using editcap to introduce errors and tethereal
to check for bugs.  It will do this until tethereal exits abnormally or
a dissector bug is encountered.

svn path=/trunk/; revision=14073
2005-04-14 04:32:27 +00:00
Anders Broman 1214d29348 From Jacques, Olivier:
The patch attached fixes it by creating a table of unique files at the
time of file deletion. This way, current asn2eth behaviour is not
modified.
 

svn path=/trunk/; revision=13943
2005-03-27 21:39:38 +00:00
Guy Harris 26722e4761 Fix asn2eth to pass 0, not NULL, for the last argument to
"dissect_per_restricted_character_string()", which is a guint32, not a
pointer.  Re-generate packet-h225.c with the fixed asn2eth.

svn path=/trunk/; revision=13819
2005-03-20 10:57:39 +00:00
Anders Broman 53c43f0757 Add a comment about where lemon is maintained now.
svn path=/trunk/; revision=13781
2005-03-16 22:09:30 +00:00
Guy Harris e074470278 Handle the new signature for "dissect_per_restricted_character_string()".
svn path=/trunk/; revision=13547
2005-02-28 08:22:02 +00:00
Ronnie Sahlberg fbf762bda5 update asn2eth and all generated dissectors to new dissect_ber_boolean that takes a implicit_tag parameter
svn path=/trunk/; revision=13479
2005-02-23 08:57:47 +00:00
Anders Broman 77a25f2703 From Tomas Kukosa:
Fix  problems with bitfields with dashed ("-") names

svn path=/trunk/; revision=13416
2005-02-16 22:40:56 +00:00
Guy Harris 6616a3770c Make the "maintainer-clean" rules get rid of some additional generated
files.  Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and
GENERATED_FILES macros in Makefile.common files, along the lines of what
wiretap/Makefile.common has.

Clean up "*~" files with "make clean" rather than only "make distclean"
in some additional places.

Add "maintainer-clean" rules to the Makefile.nmake files, paralelling
the ones in the automake-generated Makefile.in files, using the
GENERATED_FILES macros from Makefile.common files.  In some cases, move
the cleanup of files from "make distclean" to "make maintainer-clean",
and in other cases, put in a comment indicating why we're not doing that
(because some files that are distributed in the source tarballs, namely
Flex output, were built with a UN*X Flex and won't compile on Windows,
so we get rid of them with "make distclean" so you can clean up stuff
that *has* to be re-generated for Windows).

Clean up some *CLEANFILES definitions - get rid of ones that no longer
apply as files were moved or that add to the definition a name that's
already there.

svn path=/trunk/; revision=13402
2005-02-14 20:33:57 +00:00
Anders Broman 1fb60a0659 From Alejandro Vaquero :
Find attached a patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13338
2005-02-07 08:58:40 +00:00
Tomas Kukosa 1d2249b2c5 Fix bug in SEQUENCE/SET OF handling
svn path=/trunk/; revision=13137
2005-01-20 11:56:33 +00:00
Gerald Combs db4f10408c Switch the Windows build environment to GTK 2.4.14. Enable GTK-Wimp by
default in the installer.

svn path=/trunk/; revision=13087
2005-01-17 16:45:15 +00:00
Tomas Kukosa e0d75c08f6 Support of GeneralizedTime in PER
svn path=/trunk/; revision=13086
2005-01-17 11:53:36 +00:00
Lars Roland 61a74850dd Convert files with mixed (unix and DOS) EOL-style correctly.
svn path=/trunk/; revision=13080
2005-01-17 00:23:43 +00:00