aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ptp.c
AgeCommit message (Collapse)AuthorFilesLines
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
2008-12-19One last snprintf.Jaap Keuter1-4/+0
svn path=/trunk/; revision=27061
2008-12-17Fix typos and spelling (mostly in text strings) Bill Meier1-1/+1
svn path=/trunk/; revision=27028
2008-12-03From Markus Renz:Jaap Keuter1-74/+77
Bugfix for ptp dissector. svn path=/trunk/; revision=26909
2008-03-15From http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1539 :Jeff Morriss1-351/+351
Hexadecimal and octal are unsigned. Don't let dissectors register signed fields (FT_INT*) to be displayed in hexadecimal (including HEX_DEC and DEC_HEX) or octal. Fix dissectors that do that mostly by changing the fields to unsigned though in PANA it appears the fields are meant to be signed so change those fields to be displayed in decimal. This fixes an assertion crash in hfinfo_numeric_format() if/when someone tries to create a filter using one of these mixed signed/unsigned fields (because that routine does not know how to present the user with a signed value in hex). Also add FT_*INT64 to the "make sure it's not BASE_NONE" check. svn path=/trunk/; revision=24643
2008-03-04Fix fields that are passed to proto_tree_add_uint64_format_value() to beGuy Harris1-1655/+1655
FT_UINT64 fields. Partially clean up indentation (it is *NOT* guaranteed that tabs will be set every 4 spaces!). svn path=/trunk/; revision=24548
2008-03-04From ChrisMaynard:Anders Broman1-2/+2
packet-ptp.c(2183) : error C2220: warning treated as error - no object file generated packet-ptp.c(2183) : warning C4244: 'function' : conversion from '__int64 ' to 'double ', possible loss of data patch to correct the problem. svn path=/trunk/; revision=24545
2008-03-03From Markus Seehofer :Anders Broman1-135/+1954
Updated the PTP Packet Dissector to the current Draft Version IEEE1588v2.2 svn path=/trunk/; revision=24539
2008-02-29Properly attribute the FOUNDATION Fieldbus dissector to Yukiyo Akisada.Jaap Keuter1-1/+1
Correct protocol name. svn path=/trunk/; revision=24503
2007-12-05Clean up indentation.Guy Harris1-184/+184
Use G_GINT64_MODIFIER for gint64 and guint64 values. Use "u", rather than "d", for unsigned values. Put whitespace in the proper place in format strings. svn path=/trunk/; revision=23762
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-08-08From Markus Seehofer:Ulf Lamping1-26/+1156
A new version of the IEEE1588/PTP dissector. This dissector now includes the coming version 2 of the standard. It supports both IP/UDP and pure ethernet frames. I've done some minor changes: LL suffix doesn't work on Win32, used G_GINT64_CONSTANT instead - as described in doc/readme.developer removed ETHERTYPE_PTP definition, already defined in etypes.h removed some duplicated "if (tree)" svn path=/trunk/; revision=22472
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18196
2006-01-16done:Jörg Mayer1-4/+0
packet-ntp.c: Rather confused and incorrect use of g_snprintf return value packet-pim.c: whitespace change packet-icmpv6.c: g_snprintf takes trailing \0 into account, fix off by 1 error packet-clnp.c: Fix incorrect use of g_snprintf return value packet-isakmp.c: g_snprintf takes trailing \0 into account packet-tr.c: Fix incorrect use of g_snprintf return value packet-radius.c: Fix incorrect use of g_snprintf return value packet-radius.h: constify a string variable packet-ldap.c: The return value isn't needed, so don't use it incorrectly packet-tcp.c: Fix incorrect use of g_snprintf return value packet-windows-common.c: Remove unneeded DISSECTOR_ASSERT packet-smb-sidsnooping.c: g_snprintf takes trailing \0 into account packet-pvfs2.c: g_snprintf takes trailing \0 into account packet-ptp.c: Remove #include snprintf packet-ppp.c: Fix incorrect use of g_snprintf return value packet-ospf.c: Fix incorrect use of g_snprintf return value packet-mip6.c: snprintf -> g_snprintf packet-bootp.c: Remove a commented out bad use of g_snprintf packet-ber.c: snprintf -> g_snprintf, g_snprintf takes trailing \0 into account 2do: 52 packet-ieee80211.c: 2DO 2 packet-nfs.c: 2DO - too many side effects 33 packet-bgp.c: 2DO 18 packet-dns.c: 2DO 14 packet-dcm.c: 2DO 13 packet-x11.c: 2DO 11 packet-kerberos.c: 2DO 10 packet-diameter.c: 2DO 9 packet-snmp.c: 2DO 9 packet-pgm.c: 2DO 7 packet-nbns.c: 2DO 6 packet-fcswils.c: 2DO 5 packet-wccp.c: 2DO 5 packet-cops.c: 2DO 4 packet-wtp.c: 2DO svn path=/trunk/; revision=17038
2005-08-19From Markus SeehoferRonnie Sahlberg1-1/+22
PTP updates svn path=/trunk/; revision=15426
2005-08-08various code cleanup:Ulf Lamping1-4/+0
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2004-09-30Give it an RCS ID.Guy Harris1-0/+2
svn path=/trunk/; revision=12158
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+2126
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410