aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rmt-norm.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-06convert to proto_tree_add_subtree[_format]Michael Mann1-7/+4
Change-Id: Ia2567695ffed30c990eda3740b08bfab101cea96 Reviewed-on: https://code.wireshark.org/review/2883 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-20Rename dissector_add_handle() to dissector_add_for_decode_as().Guy Harris1-1/+1
Hopefully that name makes it clear what the routiner's purpose is, and will encourage people to use it rather than using dissector_add_uint() with a bogus integer value. Change-Id: Ic5be456d0ad40b176aab01712ab7b13aed5de2a8 Reviewed-on: https://code.wireshark.org/review/2483 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-06-20Cleanup display filters reported by checkfiltername.plMichael Mann1-1/+1
Also ensured some files have their correct names at the top so they are more easily grepped Change-Id: Ib0f5ddf14eb1616a93dee496107dc0eb09048825 Reviewed-on: https://code.wireshark.org/review/2452 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-03-15(Minor) prefs_register_protocol() callback not required; Therefore: simplify ↵Bill Meier1-10/+6
proto_reg_handoff...(). Change-Id: Ic09351d7b04d55814211618056e92430bc114f6f Reviewed-on: https://code.wireshark.org/review/684 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-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>
2013-12-12correct the function names in order to fix compile errorsMartin Kaiser1-2/+2
svn path=/trunk/; revision=53976
2013-12-12Move proto_reg_handoff...() to file end as per convention;Bill Meier1-548/+710
Reformat various hf[] entries; #include params.h (not prefs.h); 'offset++' --> 'offset += 1' for consistency; Localize some variable defintions; Tabs --> spaces (to match editor modelines); Rework some whitespace; svn path=/trunk/; revision=53970
2013-12-12- Make local functions static.Anders Broman1-0/+3
- Forward declaration of register functions. svn path=/trunk/; revision=53958
2013-11-23Create the ability to have packet scoped "proto" data. Bug 9470 ↵Michael Mann1-3/+3
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9470) I'm not sold on the name or module the proto_data functions live in, but I believe the function arguments are solid and gives us the most flexibility for the future. And search/replace of a function name is easy enough to do. The big driving force for getting this in sooner rather than later is the saved memory on ethernet packets (and IP packets soon), that used to have file_scope() proto data when all it needed was packet_scope() data (technically packet_info->pool scoped), strictly for Decode As. All dissectors that use p_add_proto_data() only for Decode As functionality have been converted to using packet_scope(). All other dissectors were converted to using file_scope() which was the original scope for "proto" data. svn path=/trunk/; revision=53520
2013-09-18Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9138 (Malformed NORM ↵Chris Maynard1-25/+17
packet) having to do with Wireshark assuming that all remaining bytes in the packet are part of the "cc_node_list", rather than stopping dissection according to the hdr_len field in the NORM Common Message Header. Ref: http://tools.ietf.org/html/rfc3940#section-4.2.3.4 #BACKPORT(1.10, 1.8) svn path=/trunk/; revision=52139
2013-09-15emem -> wmem (except uat or init routines)Pascal Quantin1-2/+3
svn path=/trunk/; revision=52087
2013-05-27Batch of filterable expert infosMichael Mann1-1/+9
svn path=/trunk/; revision=49600
2013-05-24Overhauled the RMT dissectors. Not sure each needs its own file, but since ↵Michael Mann1-417/+435
this involves multiple RFCs, they remain split out by that. More are now a "pure" dissector and not a "decoding function hook". Some Notes: 1. Converted to "new style" dissectors with data being passed between dissectors 2. Combined header files into one since there wasn't much that should have really been in the header files. Implemented functionality is in c module of respective dissector. Not sure if LCT preferences should just be in the LCT dissector and not the RMT-ALC "parent", but kept for backwards compatibility. svn path=/trunk/; revision=49555
2013-03-19From beroset:Anders Broman1-3/+3
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 svn path=/trunk/; revision=48430
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 FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-05-15Remove unneeded #includes (stdlib, stdio, ctypes, time);Bill Meier1-15/+14
In a few cases: do some whitespace, indentation cleanup & reformatting. svn path=/trunk/; revision=42632
2011-10-25Fix proto_tree_add_item() encoding args.Bill Meier1-62/+62
svn path=/trunk/; revision=39570
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-06-19Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.Bill Meier1-2/+0
svn path=/trunk/; revision=37716
2010-04-03Remove unneeded #include <stdio.h>Bill Meier1-1/+0
svn path=/trunk/; revision=32367
2010-01-19Fix a few gcc _Wshadow warnings ....Bill Meier1-10/+10
svn path=/trunk/; revision=31580
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29344
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29340
2009-07-07From Kovarththanan Rajaratnam:Stig Bjørlykke1-4/+4
More FT_XXX cleanup. svn path=/trunk/; revision=28971
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-52/+52
(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
2008-10-29Minor cleanup related to proto_register & proto_reg_handoffBill Meier1-17/+16
svn path=/trunk/; revision=26619
2007-11-09Apply yet another set of the optimization patches:Anders Broman1-1/+1
When offset parameter is 0 replace tvb_bytes_exist() with the faster tvb_length(). On the other hand if (tvb_bytes_exist(tvb, 0, 20) is more readable than if (tvb_length(tvb) >= 20 so only do it in heuristic function svn path=/trunk/; revision=23412
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-04-30Add a header that redefines g_array_index() to throw in a "void *" castGuy Harris1-18/+2
to work around the "data" field of a GArray being a guint8 *, and defines a g_array_data() macro to extract that field and cast it to void *. Use that header where needed. svn path=/trunk/; revision=21627
2007-04-30Yet another workaround for GArray's bad data type choice.Guy Harris1-1/+18
svn path=/trunk/; revision=21626
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2005-11-26Fix RFC number.Guy Harris1-26/+28
Use "tvb_reported_length_remaining()" for all length checks and values, so we get the *actual* packet length, not the *captured* packet length (it's a *feature* if it reports a "packet cut short" error if the packet really *was* cut short by slicing). Set subtree lengths to -1, so that if an exception is throws while dissecting them, the length includes all the data. Get rid of unused variables, and mark unused parameters. In heuristic checks, give up if we don't have enough data to check. svn path=/trunk/; revision=16599
2005-11-22Trivial warning fixesJörg Mayer1-1/+1
svn path=/trunk/; revision=16561
2005-10-20From Julian OnionsAnders Broman1-27/+70
- some improvements to the NORM decoder, and the ability to (optionally) heuristically detect NORM. - some improvements to FEC block labelling. - making the LCT header extension handler more generic and to decode more header extensions. svn path=/trunk/; revision=16280
2005-10-11From Hannes Gredler:Anders Broman1-75/+588
fixes the AF/SAFI codepoints for BGP Layer-2 VPNs from a Juniper pre-standard implementation to the new "official" IANA assigned codepoints. From Julian Onions packet-rmt-norm.ch Decode more oif the protocol svn path=/trunk/; revision=16183
2005-01-14From Stefano Pettini: RMT support for ALC and NORM.Guy Harris1-0/+281
svn path=/trunk/; revision=13029