aboutsummaryrefslogtreecommitdiffstats
path: root/epan/gcp.c
AgeCommit message (Collapse)AuthorFilesLines
2016-06-12Move Gateway Control Protocol (Context Tracking) into packet-h248.hMichael Mann1-782/+0
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>
2016-01-24Add the packet number to the packet_info structure, and use it.Guy Harris1-1/+1
That removes most of the uses of the frame number field in the frame_data structure. Change-Id: Ie22e4533e87f8360d7c0a61ca6ffb796cc233f22 Reviewed-on: https://code.wireshark.org/review/13509 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2016-01-23More pinfo->fd->abs_ts to pinfo->abs_ts.Guy Harris1-1/+1
Change-Id: I70db0a345cc4c5c57c454371deb4f92f9ac4b9ac Reviewed-on: https://code.wireshark.org/review/13501 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-10-22Use address functions instead of ADDRESS macros in asn1 and epanGerald Combs1-1/+1
Replace CMP_ADDRESS, COPY_ADDRESS, et al with their lower-case equivalents in the asn1 and epan directories. Change-Id: I4043b0931d4353d60cffbd829e30269eb8d08cf4 Reviewed-on: https://code.wireshark.org/review/11200 Petri-Dish: Michal Labedzki <michal.labedzki@tieto.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-05-13[GCP] Add a command string when there's no context tracking.AndersBroman1-0/+3
Change-Id: I26235f172d97e5c4f6e52d3816675deb1849d988 Reviewed-on: https://code.wireshark.org/review/8450 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-01-18Remove some apparently-unnecessary includes of emem.h.Guy Harris1-2/+0
Change-Id: Ib7d1b587b439ff21ec6b7f1756ce6ccf25b66f80 Reviewed-on: https://code.wireshark.org/review/6635 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2015-01-06Replace ep_address_to_str with address_to_str.Michael Mann1-2/+2
Change-Id: I4f1078b20f41800f72a751612703ad0d4c2ae87b Reviewed-on: https://code.wireshark.org/review/6323 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-12-29Remove some proto_tree_add_text outside the dissector directory.Michael Mann1-4/+2
Change-Id: I890846a0cede755a603243b4048fb5c917b2826b Reviewed-on: https://code.wireshark.org/review/6112 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-09-10Various minor changes:Bill Meier1-30/+43
- Create/use some extended value_strings - Remove unneeded #includes; - Do whitespace changes; - Add editor modelines. Change-Id: I2e1ea37dddfd5e8656c90c0d45a6596c4912bb2c Reviewed-on: https://code.wireshark.org/review/4065 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-09-09Fix some spelling & grammar.Bill Meier1-7/+7
Change-Id: Iedeaa411caa0823922dd79c27897a2349d4e6907 Reviewed-on: https://code.wireshark.org/review/4054 Reviewed-by: Bill Meier <wmeier@newsguy.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>
2014-01-06Try to fix warning: initializer element is not computable at load time.Anders Broman1-24/+38
svn path=/trunk/; revision=54618
2013-12-21fix some warnings.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=54334
2013-09-13Explicitly include emem.h where it is neededJörg Mayer1-0/+2
svn path=/trunk/; revision=51997
2013-09-04Convert GCP to wmem. It is only called from dissectors in the proper scopeEvan Huus1-71/+71
already (yay!). svn path=/trunk/; revision=51753
2013-08-04Convert proto_item_set_expert_flags to "filterable" items in alcap ↵Michael Mann1-3/+3
dissector. Unfortunately it had a few tentacles, so they needed to be brought along for the ride. svn path=/trunk/; revision=51136
2013-03-14From beroset:Anders Broman1-31/+31
remove C++ incompatibilities from gcp.c https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48291
2012-12-26Fix a bunch of warnings.Guy Harris1-5/+5
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
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=45016
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-09-07From Václav Horčák:Anders Broman1-1/+3
When context id is reused by another termination, initial packet containing $ (=choose one) is not added to context but belongs to context 0xfffffffe(context id value used in wireshark for choose one). This affects context listing in MEGACO packet contents and Telephony->Voip Calls listings for MEGACO. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6311 svn path=/trunk/; revision=38910
2011-08-07Untabify.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=38398
2011-08-07g_ascii_strdown Returns a newly-allocated string.Anders Broman1-2/+3
svn path=/trunk/; revision=38397
2011-03-28Use g_ascii_strdown instead of g_strdownJeff Morriss1-1/+1
svn path=/trunk/; revision=36385
2011-01-30Fix various instances of "unreachable code".Bill Meier1-1/+0
svn path=/trunk/; revision=35713
2010-06-03Whitespace/indentation/code style cleanup.Jaap Keuter1-105/+106
svn path=/trunk/; revision=33070
2009-10-05Add DISSECTOR_ASSERT before dereferencing pointerKovarththanan Rajaratnam1-3/+3
svn path=/trunk/; revision=30345
2009-09-29Fixed an if-check in gcp_analyze_msg().Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30198
2009-09-29Made gcp_trx_to_str() static.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=30192
2009-09-28Only include config.h in C files, to avoid multiple inclusion.Stig Bjørlykke1-0/+4
svn path=/trunk/; revision=30182
2009-09-06Rename address_to_str() to ep_address_to_str() because:Kovarththanan Rajaratnam1-9/+9
1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). svn path=/trunk/; revision=29747
2008-12-31Service response time statistics for MEGACO (GUI only).Balint Reczey1-0/+1
svn path=/trunk/; revision=27140
2008-11-04gcp_initailized --> gcp_initialized; localize sameBill Meier1-4/+5
svn path=/trunk/; revision=26692
2007-04-26mtp3_addr_to_str_buf() and mtp3_pc_hash() expect to be passed a pointerGuy Harris1-2/+2
to a mtp3_addr_pc_t; declare them as such, and pass the argument as such. svn path=/trunk/; revision=21595
2007-03-31Add Licence and TO DO listLuis Ontanon1-1/+28
svn path=/trunk/; revision=21289
2007-03-28do not pass a null string to proto_item_append_text()Luis Ontanon1-1/+1
svn path=/trunk/; revision=21252
2007-03-26the forgotten files from the last checkinLuis Ontanon1-0/+4
svn path=/trunk/; revision=21217
2007-03-25Migrate context tracing code from packet-h248.[ch] to gcp.[ch], so that the ↵Luis Ontanon1-0/+718
same code can be used by megaco (upcoming). svn path=/trunk/; revision=21189