aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mpls-echo.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-04convert to proto_tree_add_subtree[_format]Michael Mann1-42/+30
Change-Id: I621f2e2cad9403449cb78f45302388f0c874d3bc Reviewed-on: https://code.wireshark.org/review/2852 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-2/+2
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-2/+2
Change-Id: I9209c1271967405c34c1b6fa43e1726a4d3a5a3f Reviewed-on: https://code.wireshark.org/review/2377 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-06Apply found fix-encoding-args.pl errors in the dissector directory.Michael Mann1-24/+24
I coincidentally found a few files with errors, so I thought it might be time to run it on the whole directory again. Change-Id: Ia32e54b3b1b94e5a418ed758ea79807c8bc7e798 Reviewed-on: https://code.wireshark.org/review/978 Reviewed-by: Michael Mann <mmann78@netscape.net>
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-21Add missing includesJakub Zawadzki1-0/+2
svn path=/trunk/; revision=54332
2013-12-19Rename a couple of to_str functions to have ep_ in the name. This makes itEvan Huus1-1/+1
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-14Fix [-Wmissing-prototypes]Jakub Zawadzki1-2/+3
svn path=/trunk/; revision=54095
2013-10-23#if 0 numerous "unused const variables" (mostly value-string-arrays);Bill Meier1-0/+4
Also; fix a few "set but not used" warnings. svn path=/trunk/; revision=52780
2013-09-16Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if ↵Michael Mann1-6/+6
hf_ field name is the first part of the formatted string. This was all manual inspection and most cases were either: 1. Case sensitivity differences between hf_ field name and formatted string. 2. Unnecessary whitespace between hf_ field name and colon in formatted string There are cases where the hf_ field name doesn't quite match the proto_tree_add_uint_format, but it's close enough that one of them should be "right", I'm just not sure which is, I just know the string in proto_tree_add_uint_format is the one displayed. svn path=/trunk/; revision=52098
2013-09-15Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if ↵Michael Mann1-18/+17
hf_ field name is the first part of the formatted string. This was done with a perl script on the dissectors directory (packet-*.c), followed by manual inspection of the output. The manual inspection yielded a few cases that really should have been proto_tree_add_uint or proto_tree_add_item, so I updated them accordingly. The script didn't catch as many as I would have liked, but it's a start. The most common (ab)use of proto_tree_add_uint_format was for appending strings to CRC/checksum values to note good or bad CRC/checksum. svn path=/trunk/; revision=52045
2013-09-09expert_add_info_format_text -> expert_add_info_formatMichael Mann1-27/+27
svn path=/trunk/; revision=51852
2013-07-07fixed a typo in the expert infosMartin Kaiser1-2/+2
svn path=/trunk/; revision=50435
2013-07-05fix compiler warningMartin Kaiser1-1/+1
packet-mpls-echo.c: In function 'dissect_mpls_echo_tlv': packet-mpls-echo.c:1136:38: error: 'ddsti' may be used uninitialized in this function [-Werror=maybe-uninitialized] packet-mpls-echo.c:1065:17: note: 'ddsti' was declared here svn path=/trunk/; revision=50386
2013-07-05Batch of filterable expert infos.Michael Mann1-33/+49
svn path=/trunk/; revision=50384
2013-06-27Bugfix implementation of RFC 4379. Reported through bug 8835 ↵Michael Mann1-38/+93
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8835) svn path=/trunk/; revision=50179
2013-06-14Removed check_col() and the occasional tree.Michael Mann1-3/+2
svn path=/trunk/; revision=49938
2013-01-31Comment out unused hf[] entries & etc.Bill Meier1-14/+18
(found by checkhf) svn path=/trunk/; revision=47389
2013-01-26Fix various instances of unused hf[] entries foundBill Meier1-7/+21
by checkhf. svn path=/trunk/; revision=47312
2013-01-26Add two missing hf[] entries (which should have been part of SVN #42819).Bill Meier1-0/+10
(Found by checkhf) ##Backport 1.8 svn path=/trunk/; revision=47304
2013-01-21From Subramanian via ↵Alexis La Goutte1-0/+14
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8109 Add support for Bidirectional Forwarding Detection (BFD) for MPLS Label Switched Paths (LSPs) [ RFC 5884] svn path=/trunk/; revision=47193
2012-12-05From Martin Kaiser:Anders Broman1-12/+14
Looking at RFC 6424, the whole approach is unclear to me. We seem to read subtlv_type and _length only once and then do the while loop. Section 3.3 of RFC6424 says that there's a list of subtlvs, I'd expect type and length to be read in the while loop... https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8039 svn path=/trunk/; revision=46391
2012-12-02Replace ip_to_str(tvb_get_ptr(...)) with tvb_ip_to_str(...).Jeff Morriss1-2/+2
svn path=/trunk/; revision=46325
2012-11-28Fix typo which cased compile error ...Bill Meier1-1/+1
svn path=/trunk/; revision=46242
2012-11-28General cleanup:Bill Meier1-473/+538
- fix extensive use of expert...() under 'if(tree)' - fix a [-Wshadow] warning; - create/use several extended variable strings; - "localize" some variable definitions; - remove some uneeded variable initializers; - do some whitespace and formatting changes to use a consistent style. svn path=/trunk/; revision=46240
2012-10-22Bug 7884 - replace proto_tree_add_text with expert_info for ↵Michael Mann1-107/+130
packet-mpls-echo.c (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7884) svn path=/trunk/; revision=45703
2012-10-07From Tomofumi Hayashi via ↵Evan Huus1-0/+208
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7806 Update MPLS-Echo to support part of rfc6425. svn path=/trunk/; revision=45369
2012-09-28Cleanup:Bill Meier1-445/+445
packet-mpls.c: - refactor dissect_pw_ach(); - create/uer value_string_ext as appropriate; - use call_dissector() rather than direct dissector call in one cse; all: - use 'LABEL' prefix for a set of rather generic enum identifiers; - fix some cases of calling expert...() or sub-dissectors under 'if(tree)'; - reformat some hf[] entries; - do some whitespace changes. svn path=/trunk/; revision=45195
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-08-10Use val_to_str_const() where appropriate;Bill Meier1-12/+12
Also (for a few files): - create/use some extended value strings; - remove unneeded #include files; - remove unneeded variable initialization; - re-order fcns slightly so prefs_reg_handoff...() at end, etc svn path=/trunk/; revision=44438
2012-07-22Update display filter names per Bug 2794. Part 1 of many.Michael Mann1-17/+17
svn path=/trunk/; revision=43907
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-05-24From Mayuresh Raut.Anders Broman1-5/+503
Addition of DDMAP TLV and Downstream FEC stack change sub-TLV to DDMAP [RFC 6424] https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7006 svn path=/trunk/; revision=42819
2012-05-15Remove unneeded #includes (stdlib, stdio, ctypes, time);Bill Meier1-1286/+1286
In a few cases: do some whitespace, indentation cleanup & reformatting. svn path=/trunk/; revision=42632
2012-03-15Fixed error: "/*" within commentStig Bjørlykke1-1/+1
svn path=/trunk/; revision=41555
2012-03-15Update MPLS return codes, ↵Anders Broman1-2/+7
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6951 svn path=/trunk/; revision=41554
2011-12-06One more contributor...Anders Broman1-1/+2
svn path=/trunk/; revision=40100
2011-12-02Add a contributor.Anders Broman1-0/+1
svn path=/trunk/; revision=40068
2011-11-30From Krishnamurthy Mayya:Anders Broman1-0/+3
Add Copyright. svn path=/trunk/; revision=40055
2011-11-28From Krishnamurthy Mayya:Anders Broman1-3/+179
LSP Ping extension has been added as per RFC 6426, to decode the LSP Ping packet with ACH encapsulation(without IP/UDP header encapsulation). The channel type in ACH header identifies the LSP Ping packet. Also support for decoding new TLVs and Sub-TLVs defined in the RFC 6426 has been provided. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6610#add_comment svn path=/trunk/; revision=40028
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-2/+2
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-31/+31
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_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_ITv6 use ENC_NA. (This was missed in SVN #39260) svn path=/trunk/; revision=39328
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-52/+52
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
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵Bill Meier1-9/+9
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN svn path=/trunk/; revision=39260
2011-02-08Add NTP times using proto_tree_add_item().Jeff Morriss1-11/+6
svn path=/trunk/; revision=35876
2011-01-14Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().Jeff Morriss1-12/+12
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str(). There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s. Replace some memcpy()+tvb_get_ptr() with tvb_memcpy(). svn path=/trunk/; revision=35529
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-09-17Use val_to_str_ext() & friends to access sminmpec_values[];Bill Meier1-1/+1
Also: packet-nhrp.c: #include sminmpec.h not req'd; svn path=/trunk/; revision=34143
2010-04-06#include <string.h> not needed.Bill Meier1-1/+0
svn path=/trunk/; revision=32410
2010-04-03Remove unneeded #include <stdio.h>Bill Meier1-1/+0
svn path=/trunk/; revision=32367