Commit Graph

40 Commits

Author SHA1 Message Date
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
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
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
Tomas Kukosa e0d75c08f6 Support of GeneralizedTime in PER
svn path=/trunk/; revision=13086
2005-01-17 11:53:36 +00:00
Tomas Kukosa a79cd5b955 Fixed value string names in field array when NO_PROT_PREFIX option is used
svn path=/trunk/; revision=12949
2005-01-05 07:09:06 +00:00
Tomas Kukosa 0d5093663d Directives #.FN_* can be used for Ethereal types as well as for ASN.1 types
svn path=/trunk/; revision=12942
2005-01-03 14:41:02 +00:00
Tomas Kukosa 5e60281f8d - names for value_string tables are generated with protocol name prefix
- FROM constraint for PER supported

svn path=/trunk/; revision=12941
2005-01-03 12:54:31 +00:00
Tomas Kukosa 316569ef2b - new optional parameter ETH_VAR for #.EXPORTS directive
- few fixes for last changes

Summary of changes during last three revisions
- NULL can be used in #.PDU or #.REGISTER directive
- fix in cyclic dependency handling
- keep <proto>-exp.cnf file regardless of '-k' option
- handling of negative values in SingleValue or ValueRange constraints
- handling of all SEQUONCE/SET (OF) types including SIZE constraint
- rename ber_sequence->ber_sequence_t and ber_choice->ber_choice_t
- rename dissect_ber_integer_new()->dissect_ber_integer()
- fix number of parameters for dissect_per_GeneralString()

svn path=/trunk/; revision=12854
2004-12-29 12:28:16 +00:00
Ronnie Sahlberg 8afae320de update of the asn2eth compiler to use the types ber_[choice|sequence]_t instead of ber_[choice|sequence]
regenerated all dissectors


fixed the choice/sequence struct to use unsigned entities for class and tag
(to reduce some compiler warning and because it should be signed quantities)



svn path=/trunk/; revision=12740
2004-12-13 08:15:34 +00:00
Ronnie Sahlberg 896737c467 update the helper for BER GeneralizedTime to handle implicit tag and update all dissectors using GeneralizedTime
svn path=/trunk/; revision=12732
2004-12-12 22:47:24 +00:00
Ronnie Sahlberg 0e528dc7a1 updates from tomas and anders
create some missing makefiles for autogenerated dissectors

finish the transition to the new ber integer dissetor helper signature
and regenerate all ber dissectors



svn path=/trunk/; revision=12724
2004-12-12 01:14:03 +00:00
Ronnie Sahlberg 3528d63cdf add _U_ to int hf_index to reduce number of compiler warnings
svn path=/trunk/; revision=12547
2004-11-20 07:03:27 +00:00
Ronnie Sahlberg bb0cf08d8c Major update of the ber helpers to fix a lot of bugs and make the handling of implicit_tags more sane.
It worked reasonably well   mainly, I suspect, due to implicit tags are reasonably uncommon in the dissectors we have already implemented and that the bugs were masking eachothers.


my regression tests (limited test samples though) decodes this new one exactly the same as the old one.


As a bonus by not changing anythiong in the decode  is that now it is possible to get dissection of implice items to work properly,  hence CMIP
(and also x509 Extensions work now)


make heaps of dissector helpers implicit_tag  aware.

change asn2eth to generate code to call the implicit_tag aware integer dissector helper.


svn path=/trunk/; revision=12520
2004-11-14 05:10:44 +00:00
Guy Harris 2e8853d825 From Tomas Kukosa:
add support for ANY type;

	add support for DEFAULT { } (empty sequence);

	some minor changes.

svn path=/trunk/; revision=12464
2004-11-01 17:51:07 +00:00
Guy Harris 18cb5c3c07 From Tomas Kukosa:
- avoid assignemnt to None which is deprecated in Python 2.3
	- fix bug when one field is used both with and without implicit
	  tag

svn path=/trunk/; revision=12277
2004-10-12 08:11:46 +00:00
Guy Harris 512285a434 More constification of arrays.
svn path=/trunk/; revision=12261
2004-10-11 08:36:55 +00:00
Guy Harris e409958909 Constify "asn_namedbit" structures.
svn path=/trunk/; revision=12252
2004-10-11 06:31:23 +00:00
Guy Harris 7b287f6696 Make "ber_sequence" tables "const".
svn path=/trunk/; revision=12246
2004-10-08 20:43:43 +00:00
Guy Harris 6aad0b0543 From Tomas Kukosa:
- fix for protocol registration (register_dissector() does not return
  handle)
- new directive REGISTER which can register PDU more than once
- implicit tagging environment is supported 

svn path=/trunk/; revision=12177
2004-10-01 19:54:46 +00:00
Guy Harris 79c706baf9 From Tomas Kukosa:
- make the default protocol name module-name from input file
- don't use the [##]/(##) mark for index of SET/SEQUENCE item with
  original PER/BER API
- allow PDUs to be registered 

svn path=/trunk/; revision=12066
2004-09-22 16:32:20 +00:00
Ronnie Sahlberg 88a4c48f24 from tomas kukosa, fix for generated _PDU() functions to match the dissector_t signature
svn path=/trunk/; revision=11984
2004-09-13 08:00:33 +00:00
Ronnie Sahlberg 6385a7601e From Tomas Kukosa, updates to the asn2eth compiler
svn path=/trunk/; revision=11981
2004-09-13 05:13:52 +00:00
Guy Harris 9ad0faed03 From Tomas Kukosa:
- only one function prototype is emitted if type is present in more
    than one cyclic dependency

  - field decoding functions has to be emitted immediately after a
    function prototype in case of cyclic dependency

  - few grammar changes               

svn path=/trunk/; revision=11535
2004-07-27 05:32:58 +00:00
Ronnie Sahlberg 0d59053844 make the implicit_tag parameter _U_ to get rid of some compiler warnings in those cases it is not used.
svn path=/trunk/; revision=11485
2004-07-23 13:21:48 +00:00
Guy Harris 8a8b883450 Set the svn:eol-style property on all text files to "native", so that
they have LF at the end of the line on UN*X and CR/LF on Windows;
hopefully this means that if a CR/LF version is checked in on Windows,
the CRs will be stripped so that they show up only when checked out on
Windows, not on UN*X.

svn path=/trunk/; revision=11400
2004-07-18 00:24:25 +00:00
Guy Harris 789f70f743 From Tomas Kukosa: small fix for ASN2ETH compiler concerning creation of
export conformance file.

svn path=/trunk/; revision=11246
2004-06-26 09:56:22 +00:00
Ronnie Sahlberg 9c880121eb from tomas k
updates to the asn2eth compiler and a new regenerated h235 dissector

svn path=/trunk/; revision=11231
2004-06-24 21:50:05 +00:00
Ronnie Sahlberg 8bd0783e6b from Tomas K
updates to the asn2eth per/ber compiler

svn path=/trunk/; revision=11223
2004-06-24 05:13:59 +00:00
Ronnie Sahlberg 1c236463ba update asn1 compiler to (hopefully) handle BER SET OF constructs
svn path=/trunk/; revision=11141
2004-06-12 02:08:34 +00:00
Ronnie Sahlberg 2aaa6a6ca0 Parameter 8 to dissect_ber_bistring() is the ett_ variable (or -1) and not
a NULL **proto_tree pointer.

Set the ett variable to always be -1 for the time being

svn path=/trunk/; revision=11140
2004-06-12 01:34:29 +00:00
Ronnie Sahlberg 02e4a25626 From Tomas Kukosa updates to the ASN1 compiler
Change doc string to not specificly state it is for PER
Temporary/Partial fix for the tag of impoerted types.

svn path=/trunk/; revision=11139
2004-06-12 01:21:02 +00:00
Ronnie Sahlberg c4c61d62a5 update to the asn1 compiler.
Do not output the value definitions for enumerated integers twice.
the c compiler doesnt like when the same symbol is declared twice.

svn path=/trunk/; revision=11124
2004-06-07 07:44:36 +00:00
Ronnie Sahlberg 64c5600578 Tomas updates to H235 and the ASN2ETH compiler
svn path=/trunk/; revision=11104
2004-06-04 11:28:04 +00:00
Guy Harris aad35bf43f From Tomas Kukosa:
- limits for dissect_per_constrained_integer() are passed as unsigned
    if possible
  - new directive NO_EMIT in conformation file - avoids emitting
    function body (or vals or both) into packet-xxxx-fn.c file
  - new directive USER_DEFINED in conformation file - emitting of
    function body (or vals or both) in the packet-xxxx-fn.c file is
    replaced with external declaration
  - support for SET OF type for BER
  - flag WITH_VALS is default for EXPORTS, USER_DEFINED, NO_EMIT
    directives
  - the _U_ attribute is used for pinfo parameters
  - the offset parameters and return codes are changed from guint32 to
    int

svn path=/trunk/; revision=11088
2004-06-03 08:33:29 +00:00
Guy Harris 40ecde2765 The function pointer in a "per_choice_t" or a "per_sequence_t" is to a
function that returns "int", not "guint32"; define those functions to
return "int".

svn path=/trunk/; revision=10999
2004-05-25 21:23:09 +00:00
Guy Harris 3858062c2f Replace some Windows dash/hyphen character with a "-" in some comments.
Make the header files declare the "value_string" arrays as "extern", so
as to prevent problems on some platforms when building a shared
libethereal.

Note that, at least currently, we have separate "PER_NOT_DECODED_YET()"
and "BER_NOT_DECODED_YET()" macros, rather than a common
"NOT_DECODED_YET()" macro.

svn path=/trunk/; revision=10996
2004-05-25 21:06:54 +00:00
Ronnie Sahlberg 67e156bb57 From Tomas Kukosa
ASN2ETH compiler and support script for lexical and syntactic analysis.

Will later be used for all those ASN.1 protocols we havent implemented yet

svn path=/trunk/; revision=10983
2004-05-24 08:33:09 +00:00