Jeff Morriss
8c608e6e82
Remove $Id$ from the ASN.1 dissectors and regenerate them.
...
Change-Id: Ie476c6f82f318188b41ed922b92c6fec119ea954
Reviewed-on: https://code.wireshark.org/review/244
Reviewed-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
Tested-by: Jeff Morriss <jeff.morriss.ws@gmail.com>
2014-02-18 03:05:28 +00:00
Guy Harris
87f4b376f1
Fix one half-changed tvb_get_string() call.
...
svn path=/trunk/; revision=54879
2014-01-21 20:13:17 +00:00
Guy Harris
73598a7991
IA5 = ASCII. Use tvb_get_string_enc() with an explicit encoding, not
...
tvb_get_string().
svn path=/trunk/; revision=54877
2014-01-21 20:08:39 +00:00
Anders Broman
6b58ef91d4
Omit assignment for not used types.
...
svn path=/trunk/; revision=54591
2014-01-04 11:48:40 +00:00
Evan Huus
8f665d9b36
Add a sixteenth element to all BCD digit sets to avoid garbage values when
...
decoding corrupt bytes. Some of these digit sets could probably be
deduplicated...
svn path=/trunk/; revision=54224
2013-12-18 15:54:32 +00:00
Jakub Zawadzki
4d92f6079b
Remove not needed ';'
...
svn path=/trunk/; revision=54088
2013-12-14 11:12:20 +00:00
Chris Maynard
9b38829b34
Reject the packet if data is NULL without doing anything else.
...
svn path=/trunk/; revision=53708
2013-12-02 02:31:04 +00:00
Evan Huus
1db1b8e2bb
Convert ASN1 dissectors from ep_address_to_str to address_to_str. Clean up a bit
...
of ansi_tcap code while in the neighbourhood.
svn path=/trunk/; revision=53530
2013-11-23 22:37:33 +00:00
Michael Mann
09bd9ad788
Have ANSI TCAP dissector pass data through subdissector parameter instead of using struct _packet_info.
...
svn path=/trunk/; revision=52885
2013-10-27 02:00:18 +00:00
Bill Meier
6dd42b581a
Fix some [-Wunused-const-variable] warnings (using '#if 0')
...
svn path=/trunk/; revision=52862
2013-10-26 02:09:14 +00:00
Pascal Quantin
102c452bcb
More emem -> wmem conversion:
...
- tvb_get_g_stringz()/tvb_get_ephemeral_stringz()/tvb_get_seasonal_stringz() -> tvb_get_stringz()
- tvb_get_g_stringz_enc()/tvb_get_ephemeral_stringz_enc() -> tvb_get_stringz_enc()
- tvb_get_ephemeral_unicode_stringz() -> tvb_get_unicode_stringz()
- tvb_bcd_dig_to_ep_str() -> tvb_bcd_dig_to_wmem_packet_str()
- update docs accordingly
svn path=/trunk/; revision=52180
2013-09-22 20:04:35 +00:00
Pascal Quantin
a0c53ffaa1
emem -> wmem conversion:
...
- ep_tvb_get_bits() -> wmem_packet_tvb_get_bits()
- tvb_g_memdup()/ep_tvb_memdup() -> tvb_memdup()
- tvb_fake_unicode()/tvb_get_ephemeral_faked_unicode() -> tvb_get_faked_unicode()
- tvb_get_g_string()/tvb_get_ephemeral_string()/tvb_get_seasonal_string() -> tvb_get_string()
- tvb_get_g_unicode_string()/tvb_get_ephemeral_unicode_string() -> tvb_get_unicode_string()
- tvb_get_ephemeral_string_enc() -> tvb_get_string_enc()
- update docs accordingly
svn path=/trunk/; revision=52172
2013-09-22 15:50:55 +00:00
Pascal Quantin
efe18f199c
Convert a few dissectors from emem to wmem API
...
svn path=/trunk/; revision=51983
2013-09-12 20:37:30 +00:00
Evan Huus
8b0f1addd9
Apparently one of our major global headers must include emem.h, because I just
...
found a bunch more asn1 dissectors using emem without ever directly including
the header. Convert those to wmem as well, which involves add a number of
#include directives since dissectors do *not* automatically pull in the wmem
headers.
svn path=/trunk/; revision=50066
2013-06-19 23:08:58 +00:00
Pascal Quantin
0ee4d0a00a
Postfix FT_NONE fields with "_element" string to reduce number of incompatible filters in ASN.1 dissectors
...
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2402
svn path=/trunk/; revision=49599
2013-05-27 20:26:49 +00:00
Pascal Quantin
a37c044203
Update the ASN.1 based dissectors following the changes done in r48812
...
svn path=/trunk/; revision=48820
2013-04-11 18:14:53 +00:00
Anders Broman
f92bd64966
[-Wmissing-prototypes]
...
Use explicit casts.
svn path=/trunk/; revision=48439
2013-03-20 05:59:22 +00:00
Bill Meier
d449c31d1d
its ==> it's & it's ==> its as needed.
...
svn path=/trunk/; revision=47892
2013-02-26 01:22:18 +00:00
Pascal Quantin
b1143f60b3
Regenerate ANSI MAP dissector
...
svn path=/trunk/; revision=46948
2013-01-05 13:53:27 +00:00
Jeff Morriss
0266cceef3
Make all enum_val_t's const.
...
svn path=/trunk/; revision=46292
2012-11-29 20:15:37 +00:00
Jakub Zawadzki
7a9d27c33f
Regenerate asn.1 dissectors.
...
svn path=/trunk/; revision=45110
2012-09-24 19:38:46 +00:00
Jeff Morriss
2552c750e5
We always HAVE_CONFIG_H so don't bother checking whether we have it or not.
...
svn path=/trunk/; revision=45017
2012-09-20 02:03:38 +00:00
Michael Mann
296871713f
make hash key session scoped
...
cleanup g_snprintf
svn path=/trunk/; revision=44565
2012-08-18 19:22:22 +00:00
Guy Harris
ff6a33fdb4
Mark a parameter as unused.
...
Clean up indentation and get rid of trailing white space.
svn path=/trunk/; revision=44562
2012-08-18 06:53:39 +00:00
Guy Harris
549d81fe37
epan/dissectors/packet-ansi_map.c shouldn't be edited - it's generated
...
from the files in asn1/ansi_map. Update packet-ansi_map-template.c to
reflect the use of session-scope-allocated data for the saved invoke
data, and regenerate the dissector - which means that
TransactionId_table_cleanup() still exists, and is still used, it just
frees only the hash table key, which is g_strdup()ed, not the value,
which is automatically freed when the session-scope-allocated data is
all freed.
svn path=/trunk/; revision=44561
2012-08-18 06:33:08 +00:00
Michael Mann
db98d944e5
Use capture scoped memory for hash table functionality
...
svn path=/trunk/; revision=44558
2012-08-18 02:54:06 +00:00
Jakub Zawadzki
bf81b42e1e
Update Free Software Foundation address.
...
(COPYING will be updated in next commit)
svn path=/trunk/; revision=43536
2012-06-28 22:56:06 +00:00
pascal
acc2a3706b
Fix RVALS() macro usage
...
svn path=/trunk/; revision=42720
2012-05-19 19:05:36 +00:00
Guy Harris
9f925a618f
The trial period is arguably over - no need for packet-ansi_map.c to
...
have its own #if 0'ed out definition of dgt_set_t.
svn path=/trunk/; revision=42020
2012-04-11 00:35:53 +00:00
Guy Harris
dd4cb8424b
Get rid of redundant Dgt1_9_bcd digit set - passing NULL as the digit
...
set uses tvb_bcd_dig_to_ep_str()'s default digit set, which is the same.
Clean up white space (no 4-space tab characters).
svn path=/trunk/; revision=42019
2012-04-11 00:34:13 +00:00
Stig Bjørlykke
b71ce5d268
Do not assign a value to itself.
...
svn path=/trunk/; revision=41482
2012-03-11 14:03:13 +00:00
Alexis La Goutte
95cc98f92c
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
...
svn path=/trunk/; revision=41211
2012-02-27 16:50:27 +00:00
Chris Maynard
e799efeed9
Fix some duplicate display filter names.
...
svn path=/trunk/; revision=40568
2012-01-18 21:07:53 +00:00
Anders Broman
faea2d624c
Get rid of Warnings.
...
svn path=/trunk/; revision=39951
2011-11-19 22:42:51 +00:00
Anders Broman
1b7b2dd067
Use tvb_bcd_dig_to_ep_str().
...
svn path=/trunk/; revision=39929
2011-11-18 07:01:10 +00:00
Bill Meier
794757ae8f
For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
...
Also: remove trailing whitespace for a number of files.
svn path=/trunk/; revision=39503
2011-10-21 02:10:19 +00:00
Bill Meier
a6e35df202
Do some more conversions of proto_tree_add_item() 'encoding' arg
...
(previously missed).
svn path=/trunk/; revision=39451
2011-10-18 00:39:20 +00:00
Bill Meier
31abdcb584
Convert asn1 template files proto_tree_add_item() 'encoding' arg for field types FT_STRING as follows:
...
1. If there's no character encoding (ENC_ASCII, ...) specified
then use ENC_ASCII.
2. Always use ENC_NA
(replacing any existing True/1/FALSE/0
/ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN).
svn path=/trunk/; revision=39428
2011-10-15 19:48:19 +00:00
Bill Meier
24cf0aad06
Update generated ASN1 *.[hc] files after recent work done by Jeff Morriss;
...
The only change in each file is in a comment showing the asn2wrs cmd used to build that file.
svn path=/trunk/; revision=39427
2011-10-15 19:27:27 +00:00
Bill Meier
6142dd287b
Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1/*:
...
Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as
the encoding parameter for proto_tree_add_item() calls which directly reference
an item in hf[] which has a type of:
FT_BOOLEAN
FT_IPv4
FT_EUI64
FT_GUID
FT_UINT_STRING
Also: For type FT_IPv6 use ENC_NA. (This was missed in SVN #39260 )
svn path=/trunk/; revision=39332
2011-10-10 01:38:20 +00:00
Bill Meier
e2996ceabe
Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1 dissectors:
...
Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as
the encoding parameter for proto_tree_add_item() calls which directly reference
an item in hf[] which has a type of:
FT_UINT8
FT_UINT16
FT_UINT24
FT_UINT32
FT_UINT64
FT_INT8
FT_INT16
FT_INT24
FT_INT32
FT_INT64
FT_FLOAT
FT_DOUBLE
svn path=/trunk/; revision=39294
2011-10-06 16:50:13 +00:00
Anders Broman
7439bba9dc
Try to do a more syntactically correct import.
...
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6150
svn path=/trunk/; revision=38159
2011-07-21 22:46:07 +00:00
Jeff Morriss
80c1ef3811
Fix a couple (value) mistakes in value_strings. Found by Martin's patch on the -dev list.
...
svn path=/trunk/; revision=37259
2011-05-18 20:06:17 +00:00
Gerald Combs
793d683575
Regenerate the ANSI MAP, LDAP, and TETRA dissectors so that Coverity can
...
locate their template files.
svn path=/trunk/; revision=36569
2011-04-11 23:07:53 +00:00
Anders Broman
55f45d5266
Add a missing IE found in trace from https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5637
...
svn path=/trunk/; revision=35842
2011-02-07 17:43:26 +00:00
Anders Broman
01ef9f73ef
Remove debug printouts.
...
svn path=/trunk/; revision=35834
2011-02-05 14:37:52 +00:00
Anders Broman
b723ccb30c
Introduce preferences to set the strictness of Invoke/response
...
tracking.
svn path=/trunk/; revision=35822
2011-02-04 16:12:59 +00:00
Anders Broman
b80813a45c
From Porus Mehta:
...
Corrections to ANSI MAP ASN.1 specifications.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5584
svn path=/trunk/; revision=35556
2011-01-16 18:36:17 +00:00
Anders Broman
735709bee6
Add tvb_bcd_dig_to_ep_str()
...
/*
* Given a tvbuff, an offset into the tvbuff, and a length that starts
* at that offset (which may be -1 for "all the way to the end of the
* tvbuff"), fetch BCD encoded digits from a tvbuff starting from either
* the low or high half byte, formating the digits according to an input digit set,
* if NUll a default digit set of 0-9 returning "?" for overdecadic digits will be used.
* A pointer to the EP allocated string will be returned.
* Note a tvbuff content of 0xf is considered a 'filler' and will end the conversion.
*/
svn path=/trunk/; revision=35286
2010-12-28 12:36:26 +00:00
Guy Harris
a8bc4a0d13
Rename the routines that handle dissector tables with unsigned integer
...
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-12-20 05:35:29 +00:00