aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-smrse.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-08Combine Decode As and port preferences for tcp.port dissector table.Michael Mann1-2/+2
This patch introduces new APIs to allow dissectors to have a preference for a (TCP) port, but the underlying data is actually part of Decode As functionality. For now the APIs are intentionally separate from the regular APIs that register a dissector within a dissector table. It may be possible to eventually combine the two so that all dissectors that register with a dissector table have an opportunity to "automatically" have a preference to adjust the "table value" through the preferences dialog. The tcp.port dissector table was used as the guinea pig. This will eventually be expanded to other dissector tables as well (most notably UDP ports). Some dissectors that "shared" a TCP/UDP port preference were also converted. It also removed the need for some preference callback functions (mostly when the callback function was the proto_reg_handoff function) so there is cleanup around that. Dissectors that has a port preference whose default was 0 were switched to using the dissector_add_for_decode_as_with_preference API rather than dissector_add_uint_with_preference Also added comments for TCP ports used that aren't IANA registered. Change-Id: I99604f95d426ad345f4b494598d94178b886eb67 Reviewed-on: https://code.wireshark.org/review/17724 Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-03-13Move /asn1 to /epan/dissectorsJoão Valverde1-13/+13
Change-Id: I1208fe3c2ba428995526f561e8f792b8d871e9a9 Reviewed-on: https://code.wireshark.org/review/14388 Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: João Valverde <j@v6e.pt>
2015-12-09"new" dissector API -> dissector API for ASN.1 dissectors.Michael Mann1-1/+1
Change-Id: I7b794cba2feda2cae40411e2b1cb9fb091d08220 Reviewed-on: https://code.wireshark.org/review/12480 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-12-23asn1 generated dissectors: cleanup #include usageBill Meier1-6/+5
Change-Id: I36b2731d67f9345d2fd0c23800bba7d2be94c387 Reviewed-on: https://code.wireshark.org/review/6008 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-02-18Remove $Id$ from the ASN.1 dissectors and regenerate them.Jeff Morriss1-8/+6
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>
2013-06-14Remove check_col() from ASN.1 dissectorsMichael Mann1-2/+2
svn path=/trunk/; revision=49927
2013-06-14Remove check_col() and the occasional tree.Michael Mann1-2/+1
svn path=/trunk/; revision=49923
2013-05-27Postfix FT_NONE fields with "_element" string to reduce number of ↵Pascal Quantin1-8/+8
incompatible filters in ASN.1 dissectors https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2402 svn path=/trunk/; revision=49599
2013-04-11Update the ASN.1 based dissectors following the changes done in r48812Pascal Quantin1-2/+2
svn path=/trunk/; revision=48820
2013-03-28-Wmissing-prototypesAnders Broman1-5/+8
svn path=/trunk/; revision=48609
2013-03-04Use explicit casts.Anders Broman1-2/+2
svn path=/trunk/; revision=48045
2012-09-24Regenerate asn.1 dissectors.Jakub Zawadzki1-5/+5
svn path=/trunk/; revision=45110
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45017
2012-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-1/+1
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-11-12fix [-Wunused-but-set-variable]Anders Broman1-4/+2
svn path=/trunk/; revision=39803
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-1/+1
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-10-18Do some more conversions of proto_tree_add_item() 'encoding' argBill Meier1-1/+1
(previously missed). svn path=/trunk/; revision=39451
2011-10-15Update generated ASN1 *.[hc] files after recent work done by Jeff Morriss;Bill Meier1-1/+1
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-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in asn1 ↵Bill Meier1-2/+2
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-05-13Regenerate ASN.1 dissectors to update the #line directive.Stig Bjørlykke1-12/+12
svn path=/trunk/; revision=37118
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-1/+1
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-05-11Add a little more code to avoid not-very-useful blurbs:Jeff Morriss1-3/+3
- 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-11Regenerate a few more of the ASN.1 dissectorsJeff Morriss1-26/+26
svn path=/trunk/; revision=32746
2010-04-07#include <string.h> and/or #include <stdio.h> not needed.Bill Meier1-7/+5
svn path=/trunk/; revision=32417
2010-04-06#include <stdio.h> not needed.Bill Meier1-6/+5
svn path=/trunk/; revision=32405
2009-10-11Make all proto_* values static.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30516
2009-10-09Regenerate asn1 dissectors (no change, only some line offset changes)Kovarththanan Rajaratnam1-2/+2
svn path=/trunk/; revision=30454
2009-09-06s/col_add_fstr/col_add_strKovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=29727
2009-09-06Don't pass ep_alloc()'ed strings to col_set_str().Kovarththanan Rajaratnam1-1/+1
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3984 svn path=/trunk/; revision=29726
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29340
2009-06-26Re-generate asn1 dissectors after hf_register_info cleanup.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=28848
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-10/+10
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2009-05-16Regenerate all asn2wrs generated dissectors.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=28379
2009-02-07#include <epan/conversation.h> and/or #include <epan/emem.h> not req'd ...Bill Meier1-6/+5
svn path=/trunk/; revision=27390
2008-07-23Get rid of unused code warnings.Anders Broman1-16/+7
svn path=/trunk/; revision=25809
2008-01-04Get rid of dissect_ber_boolean_value() and change the signature ofAnders Broman1-2/+2
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-11-04Update do use the -X and -T asn2wrs flags.Anders Broman1-156/+75
svn path=/trunk/; revision=23363
2007-08-25get users of oid_resolv to use the new oids, rollout packet-snmp.cLuis Ontanon1-1/+1
svn path=/trunk/; revision=22651
2007-05-22Prepare for the use of the new -X parameter for BER encoded protocols.Anders Broman1-34/+34
svn path=/trunk/; revision=21889
2007-05-15actx in the rest of dissect_ber..()lAnders Broman1-11/+11
svn path=/trunk/; revision=21773
2007-05-13Second step in introducing asn context to BER dissectors just like in PER.Anders Broman1-113/+116
svn path=/trunk/; revision=21753
2007-05-06Start introducing actx to ber functions.Anders Broman1-26/+26
svn path=/trunk/; revision=21705
2007-05-03EXTERNAL type is handled in asn2wrs nowTomas Kukosa1-1/+1
private implementations were renamed EXTERNAL -> EXTERNALt svn path=/trunk/; revision=21662
2007-03-21change the signature that asn2wrs generates for functions to marm all ↵Ronnie Sahlberg1-51/+50
parameters as _U_ to reduce the number of compiler warnings. update some template and cnf files to use _U_ as well svn path=/trunk/; revision=21088
2006-09-05Make smrse & radius dissectors findable by nameMartin Mathieson1-0/+1
svn path=/trunk/; revision=19157
2006-08-16ASN.1 dissectors regenerated with new asn2wrs to get updated field blurbTomas Kukosa1-26/+26
svn path=/trunk/; revision=18921
2006-05-24- remove some #.MODULE_IMPORT from .cng filesTomas Kukosa1-3/+3
- regenerate BER dissectors so as to change rest of Ethereal->Wireshark and asn2eth -> asn2wrs svn path=/trunk/; revision=18217
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18196
2005-12-08Regenerate with the latest asn2eth, to get FT_OID used, and to add #line.Guy Harris1-10/+13
svn path=/trunk/; revision=16736