aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h248_annex_c.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-08Combine Decode As and port preferences for tcp.port dissector table.Michael Mann1-5/+5
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-10-04h248_annex_c: use ws_strtoi function.Dario Lombardo1-2/+18
Change-Id: I0f9a1866a58ec61a8cd424ca69c1170791b5fe72 Reviewed-on: https://code.wireshark.org/review/17939 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2016-06-12Move Gateway Control Protocol (Context Tracking) into packet-h248.hMichael Mann1-0/+6
The Gateway Control Protocol (Context Tracking) is used by both H248 and MEGACO, so the functionality was refactored to epan, but should really be kept in the dissector directory to minimize (and eventually completely remove) the epan directory's dependence on it. Change-Id: I387b46aecde97234086bfdb7d8c546854fa301cd Reviewed-on: https://code.wireshark.org/review/15798 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-03-18[H248] Use hf fields from the SDP dissector to make it possible to findAndersBroman1-6/+65
related SDP in other protocols such as SIP. Change-Id: I5fb01128e6070f21b09b4f8364b5650f71fa305e Reviewed-on: https://code.wireshark.org/review/7719 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-01-07tvb_bytes_to_ep_str -> tvb_bytes_to_strMichael Mann1-2/+2
Change-Id: I79c613cbdd8dc939dd4c29ebc477fb6eefd5bfc4 Reviewed-on: https://code.wireshark.org/review/6371 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-12-23Deleting unneccessary #includes from dissectors.Martin Mathieson1-1/+0
Second batch (packet-eth.c -> packet-icmpv6.d). Will look at cleaning up and committing script afterwards. Change-Id: I14295758b81a59115d8c88899f166cc3d5d17594 Reviewed-on: https://code.wireshark.org/review/6013 Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-11-27Fix a number of dup hf[] filter-names probably mostly resulting from ↵Bill Meier1-1/+1
cut/paste errs Change-Id: Id658b9e1803b2f5b92e711a3ce981ff602333d98 Reviewed-on: https://code.wireshark.org/review/5513 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-11-03tvb_length -> tvb_reported_lengthAndersBroman1-5/+5
Change-Id: I48b618008c8c8accd6f161bdc42e02906a4765b7 Reviewed-on: https://code.wireshark.org/review/5085 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-10-02Add editor modelines & adjust indentation/whitespace as needed.Bill Meier1-627/+642
Change-Id: Ice2d93632cd42dfcef3bfbf0e15f2a8a147278fc Reviewed-on: https://code.wireshark.org/review/4433 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-06-19Remove "pkg" prefix from display filters.Michael Mann1-127/+127
Also rename base protocol filter name to match prefix of all other fields Change-Id: Iff234c1443252b9f8e6d87fd7a76925746b5e513 Reviewed-on: https://code.wireshark.org/review/2449 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-5/+5
https://www.wireshark.org/lists/wireshark-dev/201406/msg00131.html This reverts commit 246fe2ca4c67d8c98caa84e2f57694f6322e2f96. Change-Id: Ib24bae0198c13a84bd7f731bf4af921212109a8f Reviewed-on: https://code.wireshark.org/review/2430 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-18Fixup: tvb_* -> tvb_capturedDario Lombardo1-5/+5
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-19Rename a couple of to_str functions to have ep_ in the name. This makes itEvan Huus1-2/+2
obvious that the returned string is ephemeral, and opens up the original names in the API for versions that take a wmem pool (and thus can work in any scope). svn path=/trunk/; revision=54249
2013-12-15Fix [-Wmissing-prototypes]Jakub Zawadzki1-0/+3
svn path=/trunk/; revision=54135
2013-09-15Convert a few more dissectors to wmem APIPascal Quantin1-2/+4
svn path=/trunk/; revision=52053
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-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-06-20Revert http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=43404.Anders Broman1-20/+19
(Needs rethinking). svn path=/trunk/; revision=43405
2012-06-20SDP data embeded in OCTET STRING.Anders Broman1-19/+20
svn path=/trunk/; revision=43404
2012-06-05from Alex Lindberg:Anders Broman1-1/+1
Update to packet-h248.c and associated h248 dissecorts. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7332 svn path=/trunk/; revision=43107
2012-03-13H248 package updates from Alex Lindberg in bug ↵Anders Broman1-0/+1
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6915 applied by hand. svn path=/trunk/; revision=41527
2012-01-04TMR should be OCTET STRINGAnders Broman1-1/+1
svn path=/trunk/; revision=40369
2011-11-09Fix a number of proto_tree_add_item() encoding args.Bill Meier1-1/+1
svn path=/trunk/; revision=39774
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-2/+2
non-autogenerated epan/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=39288
2010-11-19Mark a parameter as unused.Anders Broman1-1/+1
svn path=/trunk/; revision=34974
2010-11-19Pretify dissection of H.248 Annex C.11 SDP equivalents.Anders Broman1-17/+25
svn path=/trunk/; revision=34972
2010-11-05Use value_string_ext fcns to access certain value_string arrays;Bill Meier1-1/+1
Sort certain value_string arrays so the values are in ascending order; Use val_to_str_ext() instead of for loops to do value_string array lookups (voip_calls.c). Minor whitespace cleanup. svn path=/trunk/; revision=34794
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.Jeff Morriss1-55/+55
svn path=/trunk/; revision=34227
2009-09-28Only include config.h in C files, to avoid multiple inclusion.Stig Bjørlykke1-0/+4
svn path=/trunk/; revision=30182
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-57/+57
(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-08FT_BOOLEAN fields w/o bitmasks really should use BASE_NONE (not BASE_DEC,...).Bill Meier1-1/+1
svn path=/trunk/; revision=28317
2009-05-01From Reinhard Speyerer:Jaap Keuter1-1/+1
This patch fixes several misspellings/typos in Wireshark SVN revision 28201. svn path=/trunk/; revision=28212
2008-12-18Fix various typos and spelling errors (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27050
2008-12-17Fix typos and spelling (mostly in text strings) Bill Meier1-2/+2
svn path=/trunk/; revision=27028
2008-12-16Fix some spelling/typos; Also: correct some field blurbs.Bill Meier1-18/+18
svn path=/trunk/; revision=27025
2008-08-14Use const with value_string array definitionsBill Meier1-1/+1
svn path=/trunk/; revision=26028
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-03-02Added missing array for hf_h248_pkg_annexc_encrypt_key,Stig Bjørlykke1-1/+17
hf_h248_pkg_annexc_flowconttx, hf_h248_pkg_annexc_dialingn and hf_h248_pkg_annexc_sdp_i. svn path=/trunk/; revision=24528
2008-01-04Get rid of ber_last_created_item().Anders Broman1-1/+1
svn path=/trunk/; revision=24009
2007-10-23Apply the small performance enhancment patches for:Anders Broman1-1/+1
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster. Replace - col_append_fstr() with faster col_append_str() - col_add_str() with col_set_str() when it's safe svn path=/trunk/; revision=23252
2007-05-15actx in the rest of dissect_ber..()lAnders Broman1-6/+16
svn path=/trunk/; revision=21773
2007-04-14fix MacOSX gcc-3.3 warnings about unused tfs/value_string variablesSebastien Tandel1-5/+5
most have been tagged unused (few have been deleted if dissector has not been modified since a long time) move packet-ssl-utils.c to DISSECTOR_SRC svn path=/trunk/; revision=21431
2007-03-28USM can be any length not just 3Luis Ontanon1-1/+1
svn path=/trunk/; revision=21250
2007-03-24Clean up some more warnings: unused variables, unitialized variables, wrong ↵Jeff Morriss1-8/+0
format (%ld instead of %d) in packet-sccp.c svn path=/trunk/; revision=21167
2007-02-27fix Bug 1407Luis Ontanon1-25/+25
as per bug 1406 actual values aren't raw bytes, they are BER encoded octet strings. svn path=/trunk/; revision=20944
2007-02-27fix Bug 1406:Luis Ontanon1-38/+34
it looks like 1 byte parameters are ber encoded integers, not raw data. svn path=/trunk/; revision=20943
2007-02-23fix some bugs introduced in the latest releases and add value_strings for ↵Luis Ontanon1-4/+4
param, evt, sig and stat ids s well as "sub-parameters". svn path=/trunk/; revision=20908
2007-01-02Oops: wireshark.com --> wireshark.orgBill Meier1-1/+1
Also: 1 additional Ethereal --> Wireshark svn path=/trunk/; revision=20272
2007-01-02More ethereal --> wiresharkBill Meier1-2/+2
svn path=/trunk/; revision=20270