aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-p7.c
AgeCommit message (Collapse)AuthorFilesLines
2016-09-16Have TPKT support a TCP port range preference instead of having ↵Michael Mann1-42/+15
"subdissectors?" register their own. There are a number of dissectors who are subdissectors of TPKT (and OSITP) that are not called by TCP dissector directly, yet can possibly register a TCP port "on the behalf" of TPKT. Just allow TPKT to support a range of ports to possibly include these protocols. Remove the preferences from these dissectors, but add backwards compatibility for the preferences by hooking into set_prefs and have the preferences just hook into Decode As functionality directly. Change-Id: Ic1b4959d39607f2b6b20fa6508da8d87d04cf098 Reviewed-on: https://code.wireshark.org/review/17476 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2016-03-13Move /asn1 to /epan/dissectorsJoão Valverde1-22/+22
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>
2016-01-14Rename new_dissector_t to dissector_t.Guy Harris1-2/+2
There are no longer any "old" dissectors, so "new_" is redundant. Change-Id: I5fee51228c2a8562166f5991e1f30c2c697e45c8 Reviewed-on: https://code.wireshark.org/review/13273 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-12-10Convert ASN.1 dissectors to remove "new" from "new-style" dissector function ↵Michael Mann1-27/+27
names that were generated from asn2wrs.py This includes: 1. new_create_dissector_handle -> create_dissector_handle 2. new_register_dissector -> register_dissector 3. new_register_ber_oid_dissector -> register_ber_oid_dissector 4. new_register_ber_syntax_dissector -> register_ber_syntax_dissector Also remove PDU_NEW, SYNTAX_NEW and REGISTER_NEW as there is no need for the distinction anymore. Change-Id: I82c7de7c8ffeeab3259d1b55bb4afc5f6a1e0329 Reviewed-on: https://code.wireshark.org/review/12491 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-12-23asn1 generated dissectors: cleanup #include usageBill Meier1-11/+10
Change-Id: I36b2731d67f9345d2fd0c23800bba7d2be94c387 Reviewed-on: https://code.wireshark.org/review/6008 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-10-13ASN1: Register PDU-dissectors as NEWStig Bjørlykke1-69/+111
Change-Id: I1a317b19d8076588c9305dae6287bb80cc14da64 Reviewed-on: https://code.wireshark.org/review/4494 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Stig Bjørlykke <stig@bjorlykke.org>
2014-02-18Remove $Id$ from the ASN.1 dissectors and regenerate them.Jeff Morriss1-12/+10
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-12-18Add a sixteenth element to all BCD digit sets to avoid garbage values whenEvan Huus1-10/+11
decoding corrupt bytes. Some of these digit sets could probably be deduplicated... svn path=/trunk/; revision=54224
2013-12-08- Forward declaration of register functions.Anders Broman1-10/+13
svn path=/trunk/; revision=53872
2013-10-31Add a data parameter to call_ber_oid_callback to be able to pass data to ↵Michael Mann1-11/+11
subdissectors found with dissector_try_string_new. The intention is to aid in the removal of pinfo->private_data use as well as static global variables in a dissector. For now, all calls to call_ber_oid_callback have the data parameter set to NULL. svn path=/trunk/; revision=52994
2013-07-01Squelch some warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=50286
2013-06-28Remove all global variables in P1 dissector. Bug 8515 ↵Michael Mann1-43/+42
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8515) Added a "subtree context" structure to asn1_ctx_t. This should allow other ASN.1 dissector global variables to be replaced when only used for transferring data between fields in a subtree. svn path=/trunk/; revision=50208
2013-06-14Add parentheses around assignment used as truth value.Jeff Morriss1-63/+63
svn path=/trunk/; revision=49929
2013-06-14Remove check_col() from ASN.1 dissectorsMichael Mann1-10/+4
svn path=/trunk/; revision=49927
2013-05-27Postfix FT_NONE fields with "_element" string to reduce number of ↵Pascal Quantin1-127/+127
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
2012-09-24Regenerate asn.1 dissectors.Jakub Zawadzki1-10/+10
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-10Regenerate all asn.1 dissectors.Jakub Zawadzki1-34/+34
svn path=/trunk/; revision=44861
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
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-05-13Regenerate ASN.1 dissectors to update the #line directive.Stig Bjørlykke1-21/+21
svn path=/trunk/; revision=37118
2011-02-22Ensure we always have a valid top_tree for p1.content. This fixes a problemStig Bjørlykke1-3/+14
with other dissectors using p1.content, such as p7. Reset global content_type_id so this will be correct in more cases. This is still not a good solution, because ContentType and Content are generic objects which may occur individual in P7. Indicate when to report invalid content-type. svn path=/trunk/; revision=36025
2011-02-20Renamed x411 to p1, x420 to p22 and s4406 to p772 to be consistentStig Bjørlykke1-36/+36
on the naming policy for X.400 protocols. svn path=/trunk/; revision=36013
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-2/+2
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-06Make some prefs callback functions static. (These modules don't use ↵Jeff Morriss1-5/+7
proto_reg_handoff_*() as their prefs callback.) svn path=/trunk/; revision=35138
2010-05-11Add a little more code to avoid not-very-useful blurbs:Jeff Morriss1-40/+40
- 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-352/+352
svn path=/trunk/; revision=32745
2010-04-07#include <string.h> and/or #include <stdio.h> not needed.Bill Meier1-13/+10
svn path=/trunk/; revision=32417
2010-02-27Regenerated to get a constrained bitstring.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=32032
2009-12-19Regenerate P7 with SIZE constraints checking.Stig Bjørlykke1-161/+190
Added MSUpperBounds.asn. Export upper bounds from X411, rename some duplicate definitions in P7. svn path=/trunk/; revision=31321
2009-10-11Make all proto_* values static.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30516
2009-09-24* Prefer col_append_str instead of col_append_fstr for constant stringsKovarththanan Rajaratnam1-6/+2
* Remove check_col guards svn path=/trunk/; revision=30126
2009-06-26Re-generate asn1 dissectors after hf_register_info cleanup.Stig Bjørlykke1-9/+9
svn path=/trunk/; revision=28848
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-28/+28
(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-06-02Update to:Graeme Lunt1-4/+4
* support the P3 protocol in addition to the P1 protocol; and * reduce the number of changes to the ASN.1 modules (as asn2wrs now handles more of the ASN.1 constructs). P3 is currently only supported over ROS (and not RTSE) svn path=/trunk/; revision=28593
2009-05-16Regenerate all asn2wrs generated dissectors.Stig Bjørlykke1-54/+54
svn path=/trunk/; revision=28379
2009-02-07#include <epan/conversation.h> and/or #include <epan/emem.h> not req'd ...Bill Meier1-11/+10
svn path=/trunk/; revision=27390
2008-11-11Regenerated files for asn1 templates committed in SVN #26750Bill Meier1-13/+13
svn path=/trunk/; revision=26751
2008-11-01Regenerate all asn2wrs generated dissectorsAnders Broman1-54/+54
svn path=/trunk/; revision=26670
2008-08-26Get rid of an unused variable in the P7 dissector.Guy Harris1-12/+10
Create a set of warning-clean ASN.1 dissectors and build them with -Werror, to try to prevent errors creeping back in. Put the P7 dissector there. svn path=/trunk/; revision=26090
2008-08-01Regenerated to use the new decode function for UTCTime.Stig Bjørlykke1-13/+5
svn path=/trunk/; revision=25898
2008-07-21See if this gets rid of some unused code warnings...Anders Broman1-26/+70
svn path=/trunk/; revision=25782
2008-02-18Remove svn:executable propertyBill Meier1-0/+0
svn path=/trunk/; revision=24384
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
2008-01-02Additional EXPORTS for X.420 attributes and general fixes.Graeme Lunt1-5/+34
svn path=/trunk/; revision=23980
2007-12-03Revised P7 dissector to use #.TABLE directive to generate tables for the ROS ↵Graeme Lunt1-550/+464
dissector from the [ABSTRACT] OPERATIONS definitions in the ASN.1 file. svn path=/trunk/; revision=23707
2007-11-25Changes suggested/provided by Anders so that fewer changes are required to ↵Graeme Lunt1-72/+324
the ASN modules. Also includes the MSAccessProtocol.asn to generate defines for the operation numbers. svn path=/trunk/; revision=23586
2007-11-17Basic P7 (X.400 Message Store Access Protocol) dissection after request from ↵Graeme Lunt1-0/+5618
the list: http://www.wireshark.org/lists/wireshark-dev/200711/msg00228.html Only a single (private) capture file is currently available which contains only a few of the P7 operations, so testing has been minimal. General attribute types, containing information from the X.400 envelope, are also included. svn path=/trunk/; revision=23479