aboutsummaryrefslogtreecommitdiffstats
path: root/tools/asn2wrs.py
AgeCommit message (Collapse)AuthorFilesLines
2011-04-08Add a relative path to the "#line" directives we produce. Regenerate theGerald Combs1-4/+14
SNMP and SPNEGO dissectors to see if it helps Coverity locate the original source files. svn path=/trunk/; revision=36522
2011-01-19Try to enhance output at ValueError to ease debugging.Anders Broman1-1/+1
svn path=/trunk/; revision=35578
2010-12-23Raise Exceptions containing a string instead of string exceptionsBalint Reczey1-2/+2
This fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4846 svn path=/trunk/; revision=35258
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-2/+5
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-11-14Sort value_string array by value if used with value_str_ext fcns;Bill Meier1-0/+2
svn path=/trunk/; revision=34874
2010-10-07Generate proper extension flags for empty constructed types SEQUENCE { ... } ↵Tomas Kukosa1-2/+8
and CHOICE { ... } svn path=/trunk/; revision=34400
2010-08-24- fix using hex values as constraintTomas Kukosa1-2/+14
- avoid crash if unknown type is used in type assignment svn path=/trunk/; revision=33905
2010-06-29New "#.SYNTAX" section for the asn2wrs conformance file. Graeme Lunt1-16/+22
This allows syntaxes to be registered separately from PDUs. Within the new section, the ASN.1 types to be used as syntaxes should be iterated. An optional second parameter on each line may be provided to provide an alternative name for the syntax (that the user will see). This name must be in double quotes. svn path=/trunk/; revision=33370
2010-06-28Remove the -R flag (used to generate syntax registrations) and replace with a Graeme Lunt1-15/+15
packet-<proto>-syn-reg.c output file. This is more generic and allows the syntax registrations to the directed from the template file. svn path=/trunk/; revision=33342
2010-06-23New option (-r) to allow a prefix to be removed from type names.Graeme Lunt1-2/+17
Usage: asn2wrs.py -r prefix This is used by x509sat where a prefix is used in type names to avoid conflicts with built-in types. svn path=/trunk/; revision=33298
2010-06-09New option (-R) to asn2wrs to register the PDUs defined in the conformance ↵Graeme Lunt1-2/+25
file as BER syntaxes (register_ber_syntax_dissector()). svn path=/trunk/; revision=33175
2010-05-25Support of value_string_ext in the asn2wrs using new directive #.USE_VALS_EXTTomas Kukosa1-2/+24
Example usage in NBAP svn path=/trunk/; revision=32944
2010-05-13Support of AUTOMATIC tagging environment Tomas Kukosa1-39/+78
(necessary for generating e.g. H.248 from original ASN.1 source) svn path=/trunk/; revision=32782
2010-05-13ASN.1 compiler accepts version brackets in SEQUENCE and CHOICE extensionsTomas Kukosa1-43/+53
svn path=/trunk/; revision=32781
2010-05-11Add a little more code to avoid not-very-useful blurbs:Jeff Morriss1-2/+6
- Change spaces in the name to underscores before comparing it to the blurb. - Check if the type simply as T_ prepended to the name. - Don't put in a blurb of "NULL". and regenerate the dissectors. svn path=/trunk/; revision=32748
2010-05-05Try to avoid the user confusion reported inJeff Morriss1-130/+139
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3477 by not using blurbs that look like abbreviations (filter strings). While we're at it try to avoid giving blurbs that are identical (or nearly so) to the field name. Regenerate a couple of dissectors like this to prove out the idea. svn path=/trunk/; revision=32673
2010-02-27Revert accidentally committed changeBalint Reczey1-2/+2
svn path=/trunk/; revision=32031
2010-02-25Prevent potential crash in libsmi.Balint Reczey1-2/+2
From: Vincent Bernat <bernat@debian.org> svn path=/trunk/; revision=32006
2010-02-03Fix from Tomas Kukosa to resolve problem with large negative intiger constraintsAnders Broman1-1/+5
"packet-rrlp-fn.c:2391: warning: integer constant is too large for 'long' type." svn path=/trunk/; revision=31777
2010-01-05Added check for SIZE constraints in bit-string.Stig Bjørlykke1-4/+10
svn path=/trunk/; revision=31447
2009-12-18Added option (-C) to check for SIZE constraints in octet-string, integer,Stig Bjørlykke1-21/+56
enumerated, sequence-of and set-of types. Added BER functions to check for SIZE constraints and give expert info warnings. svn path=/trunk/; revision=31309
2009-11-22Handle lenght restriction extension of restricted strings.Anders Broman1-4/+4
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4251 svn path=/trunk/; revision=31048
2009-06-22Default to BASE_NONE for FT_BOOLEAN with zero value for display.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=28803
2009-06-19Write NULL for empty blurb.Stig Bjørlykke1-2/+1
svn path=/trunk/; revision=28773
2009-06-18Use BASE_NONE for FT_BYTES.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=28769
2009-05-16Improved name and abbrev used for sequence of and set of elements.Stig Bjørlykke1-5/+9
svn path=/trunk/; revision=28377
2009-04-14Use G_GINT64_CONSTANT in stead of G_GUINT4_CONSTANTAnders Broman1-1/+1
svn path=/trunk/; revision=28048
2009-04-14support UINT64 constants for upper value boundsTomas Kukosa1-1/+5
svn path=/trunk/; revision=28042
2009-03-25Make it possible to check for extension marker in SEQUENCE OF and SET OF.Anders Broman1-2/+2
Fore some reason the trace in bug https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3360 does not decode properly if dissecting the exension marker so leave that code #if 0:ed out for now. svn path=/trunk/; revision=27848
2009-02-04- resolve one reduce/reduce conflict in grammarTomas Kukosa1-159/+155
- fix obsolete Python constructions svn path=/trunk/; revision=27367
2008-11-15fix all warn_explicit() usages incompatible with Python 2.6Tomas Kukosa1-6/+6
svn path=/trunk/; revision=26788
2008-11-10- new #.MODULE_EXPORTS directive which exports symbols including module ↵Tomas Kukosa1-25/+93
prefix, used to avoid conflicts when two modules have types with the same name and they need to be used together - fix few Python warnings svn path=/trunk/; revision=26738
2008-11-01From Pascal Quantin:Anders Broman1-2/+2
ASN.1: display the real name of SEQUENCE/TYPE OF parameters svn path=/trunk/; revision=26669
2008-08-01From Martin Peylo (bug 2507):Stig Bjørlykke1-0/+8
The attached patch enables asn2wrs.py and packet-ber.c to decode UTCTime according to the definitions in X.680. svn path=/trunk/; revision=25897
2008-01-28cleanup code (remove some collapsed conditions)Tomas Kukosa1-12/+3
svn path=/trunk/; revision=24215
2008-01-14use FN_VARIANT parameter in INTEGER type for planned 64bit variantsTomas Kukosa1-3/+3
svn path=/trunk/; revision=24087
2008-01-09more sophisticated H245 OLC handling focusing on more reliable T.38 ↵Tomas Kukosa1-1/+9
establishment svn path=/trunk/; revision=24043
2008-01-04Get rid of dissect_ber_boolean_value() and change the signature ofAnders Broman1-1/+1
dissect_ber_boolean() to return a value and update asn2wrs to generate the new signature. Regenerate all BER dissectors. svn path=/trunk/; revision=24015
2007-12-28support for additionally SIZE constrained TypereferenceTomas Kukosa1-4/+20
the support is only semiautomated as this feature does not occur very often use this feature for the TBCD-STRING in the H.225 dissector svn path=/trunk/; revision=23958
2007-12-10ANSI TCAP regenerated and tested with -T -X asn2wrs optionsTomas Kukosa1-143/+26
asn2wrs has -T (tagged types support) and -X (new BER sttructures) default behavior remove all -T and -X usage svn path=/trunk/; revision=23823
2007-12-06fix field attributes handling for tagged typesTomas Kukosa1-6/+21
regenerate involved dissectors svn path=/trunk/; revision=23783
2007-11-01better built-in X.880 supportTomas Kukosa1-5/+35
forward declarations of OPERATION and ERROR classes are not necessary when Remote-Operations-Information-Objects.asn itself is compiled svn path=/trunk/; revision=23328
2007-10-31small improvement in class fields handlingTomas Kukosa1-2/+14
svn path=/trunk/; revision=23321
2007-10-31accept VariableTypeValueFieldSpec syntax and ParameterizedObjectClass syntaxTomas Kukosa1-1/+19
svn path=/trunk/; revision=23320
2007-10-29asn2wrsTomas Kukosa1-4/+51
- parameterized object class assignment - octet string with extensible size constraint - RELATIVE-OID type (still not supported in packet-per/ber) packet-per - octet string with extensible size constraint more dissect_per_... functions exported from libwireshark.dll PER dissectors regenerated add forgotten packet-h323-template.h fix svn properties for h323 files svn path=/trunk/; revision=23309
2007-10-22fix export of ObjectFieldSpec and ObjectSetFieldSpec of CLASSTomas Kukosa1-2/+2
svn path=/trunk/; revision=23250
2007-10-18H.460 new dissector implemented (H.460.2-H.460.22)Tomas Kukosa1-22/+31
H.225 - change RysMessage_vals to h225_Rasmessage_vals - use #.PDU directive for H323-UserInformation and RasMessage instead of implementing it by hands - register RasMessage_PDU as "h225.ras" dissector for calling it from H.460 asn2wrs make PDUs exportable svn path=/trunk/; revision=23226
2007-10-15- new command line option -E which makes just .cnf export fileTomas Kukosa1-27/+49
- new directive #.IMPORT which ignores nonexistent input file if -E is used - type name parameter for #.FN_HDR and #.FN_FTR is optional if #.FN_PARS or #.FN_HDR precedes svn path=/trunk/; revision=23181
2007-10-11Remove path at two more places from the outputJörg Mayer1-2/+2
svn path=/trunk/; revision=23155
2007-10-11put only file basename into #line directivesTomas Kukosa1-4/+4
svn path=/trunk/; revision=23146