aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ptp.c
AgeCommit message (Collapse)AuthorFilesLines
2014-07-05convert to proto_tree_add_subtree[_format]Michael Mann1-26/+10
Change-Id: I8df48b25de784a48a25f0e48aac1e1545ed92c35 Reviewed-on: https://code.wireshark.org/review/2865 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-19Revert "Fixup: tvb_* -> tvb_captured"Michael Mann1-1/+1
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-1/+1
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-12- Forward declaration of register functions.Anders Broman1-0/+2
svn path=/trunk/; revision=53971
2013-11-21Create/use a number of extended value-strings;Bill Meier1-211/+258
Use FT_BOOLEAN instead of FT_UINT16 with 'ptp_bool_vals' value_string array; Add editor modelines; Do some whitespace & formatting changes. svn path=/trunk/; revision=53477
2013-10-13whitespace fixes; mostly: remove trailing blanksBill Meier1-38/+38
svn path=/trunk/; revision=52591
2013-10-12From Todd Newton via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9262 :Pascal Quantin1-1/+1
Fix dissection of PTP Management messages svn path=/trunk/; revision=52566
2013-09-30Convert proto_tree_add_double_format calls to ↵Michael Mann1-2/+2
proto_tree_add_double_format_value where appropriate. svn path=/trunk/; revision=52298
2013-07-23From Andreas Bachmann:Anders Broman1-70/+154
allows to display multiple TLVs and the bug of logInterMessagePeriod is fixed. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6126 svn path=/trunk/; revision=50815
2013-06-14Remove check_col() and the occasional tree.Michael Mann1-34/+29
svn path=/trunk/; revision=49921
2013-06-06From Andreas Bachmann via ↵Pascal Quantin1-20/+122
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6126 : Add dissection of PTP Signaling TLV types Request unicast transmission, Grant unicast transmission, Cancel unicast transmission and Acknowledge cancel unicast transmission svn path=/trunk/; revision=49816
2013-01-31Use '#if 0 ... #endif' rather than /** ... **/ to comment outBill Meier1-22/+22
unused hf[] entries (which I should have done in the first place). svn path=/trunk/; revision=47390
2013-01-26Comment out cases of unused hf array entries found by checkhf.Bill Meier1-11/+33
svn path=/trunk/; revision=47302
2012-10-11Change 'for (i=1; i<=n;...' to 'for (i=0; i<n; ...)Bill Meier1-3/+3
The changes fix definite problems or are done "just in case" for cases not esily determined to be a problem by quick inspection. Note: in some cases for loop index variables have been renamed to ensure all required codes changes detected. ##backport svn path=/trunk/; revision=45477
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-06Fix some Dead Store (Dead assignement/Dead increment) Warning found by ClangAlexis La Goutte1-31/+0
svn path=/trunk/; revision=44789
2012-09-06Prefer proto_tree_add_item (when it is possible)Alexis La Goutte1-21/+13
svn path=/trunk/; revision=44788
2012-09-05From Jared August:Anders Broman1-1/+171
PTPv2: Added IEEE C37.238 TLV support https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7694 svn path=/trunk/; revision=44775
2012-07-05Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7437 :Pascal Quantin1-7/+6
PTP Cancel unicast transmission and Acknowledge cancel unicast transmission packets are decoded as malformed svn path=/trunk/; revision=43575
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-05-17Fix copy&paste: hf variable name in hfi->abbrevJakub Zawadzki1-2/+2
svn path=/trunk/; revision=42682
2012-05-15Remove unneeded #includes (stdlib, stdio, ctypes, time);Bill Meier1-2/+0
In a few cases: do some whitespace, indentation cleanup & reformatting. svn path=/trunk/; revision=42632
2012-03-07IEEE1588 PTPv2 over IPv6 -> Padding issue. ↵Anders Broman1-1/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6836 svn path=/trunk/; revision=41403
2011-10-27Fix some proto_tree_add_item() encoding args;Bill Meier1-6/+6
In some files: Remove a few unneeded #includes; Do some whitespace/indentation cleanup svn path=/trunk/; revision=39635
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-20Use ENC_NA as proto_tree_add_item() encoding arg for FT_ETHER hf[] field type.Bill Meier1-11/+11
(Some minor whitespace cleanup). svn path=/trunk/; revision=39488
2011-10-15Convert proto_tree_add_item() 'encoding' arg for field types FT_STRING, ↵Bill Meier1-6/+6
FT_STRINGZ, FT_UINT_STRING as follows: 1. If there's no character encoding (ENC_ASCII, ...) specified then use ENC_ASCII. 2. For all but FT_UINT_STRING, always use ENC_NA (replacing any existing True/1/FALSE/0 /ENC_BIG_ENDIAN/ENC_LITTLE_ENDIAN). svn path=/trunk/; revision=39426
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-61/+61
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-248/+248
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-44/+44
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-07-18Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings.Bill Meier1-5/+2
svn path=/trunk/; revision=38095
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-3/+3
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-06-09Do some constifying [or other] based upon gcc -Wwrite-strings warnings.Bill Meier1-1/+1
svn path=/trunk/; revision=33198
2010-05-13(Trivial) A little more whitespace cleanup.Bill Meier1-20/+20
svn path=/trunk/; revision=32797
2010-05-13From Torrey Atcitty: [Dissector Enhancement] Added new functionality to ↵Bill Meier1-38/+401
existing 1588v2 dissector to also support IEEE802.1AS. svn path=/trunk/; revision=32796
2010-05-10Indentation & whitespace cleanup (including: "4 space tabs" ==> spaces)Bill Meier1-2627/+2630
svn path=/trunk/; revision=32735
2010-04-16From Marcus Renz: Fix for "PTP dissector displays big correction field ↵Bill Meier1-16/+3
values wrong" See: https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4635 svn path=/trunk/; revision=32499
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
2010-01-19Fix gcc -Wshadow warningsBill Meier1-4/+4
svn path=/trunk/; revision=31561
2009-09-06s/col_add_fstr/col_add_strKovarththanan Rajaratnam1-2/+2
svn path=/trunk/; revision=29727
2009-09-06Don't pass ep_alloc()'ed strings to col_set_str().Kovarththanan Rajaratnam1-2/+2
Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3984 svn path=/trunk/; revision=29726
2009-08-09Don't guard col_set_str (COL_INFO) with col_checkKovarththanan Rajaratnam1-10/+5
svn path=/trunk/; revision=29342
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-4/+2
svn path=/trunk/; revision=29340
2009-07-07From Kovarththanan Rajaratnam:Stig Bjørlykke1-15/+15
More FT_XXX cleanup. svn path=/trunk/; revision=28971
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-49/+49
(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-26Misc dissector cleanup:Bill Meier1-341/+341
- Make some fcns & vars static - hf[] blurbs: "" and repeated text --> NULL - Move proto_register & proto_reg_handoff to end of source - packet-catapult-dct2000: simplify proto_reg_handoff - Use consistent indentation svn path=/trunk/; revision=28488
2009-05-08FT_BOOLEAN fields w/o bitmasks really should use BASE_NONE (not BASE_DEC,...).Bill Meier1-18/+18
svn path=/trunk/; revision=28317
2009-05-06From Jared August:Jaap Keuter1-0/+173
Added the capability to dissect the ALTERNATE_TIME_OFFSET_INDICATOR TLV. svn path=/trunk/; revision=28288