aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ccsds.c
AgeCommit message (Collapse)AuthorFilesLines
2014-08-03Squelch some compiler warnings.Guy Harris1-1/+1
The version of GCC on the OS X 32-bit buildbot isn't smart enough to figure out that this can't happen (it's one of those "if (xxx) foo = bar; ... if (xxx) use foo;" cases.) Change-Id: I04fef2d602c913761ae7832c4f568aaaad398c87 Reviewed-on: https://code.wireshark.org/review/3390 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-08-03Eliminate proto_tree_add_text from some dissectors.Michael Mann1-6/+20
Change-Id: I398e9cf4f6882e76644aa758e12c39a39159e95f Reviewed-on: https://code.wireshark.org/review/3319 Petri-Dish: Michael Mann <mmann78@netscape.net> Petri-Dish: Evan Huus <eapache@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-06-24convert to proto_tree_add_subtree[_format]Michael Mann1-4/+4
Change-Id: I5f573dffabb8685a8e5a334ff2bfb24d9838daa6 Reviewed-on: https://code.wireshark.org/review/2601 Tested-by: Michael Mann <mmann78@netscape.net> 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-16Convert a bunch of time_to_str functions to wmemEvan Huus1-1/+1
Change-Id: I24fe3cc4a3589dadc4528a77fe7ff13d06b1a983 Reviewed-on: https://code.wireshark.org/review/2245 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-04-03Create/use an extended value-string; Do other minor changes;Bill Meier1-542/+538
Minor changes: - Remove a few unneeded initializers; - Convert "4 space tab" indentation to spaces; - Fix some indentation; - Remove some boilerplate comments; - Adjust exitor modelines. Change-Id: Ie314a2d91bf89f8612dec9e9f161d987ea107dd5 Reviewed-on: https://code.wireshark.org/review/942 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>
2014-02-25Remove trailing whitespace.Bill Meier1-1/+1
Change-Id: Ia03a1cd4590aceda30ead4aa93ad413d90c6aea6 Reviewed-on: https://code.wireshark.org/review/372 Reviewed-by: Bill Meier <wmeier@newsguy.com> Tested-by: Bill Meier <wmeier@newsguy.com>
2013-12-29New dissector for the CCSDS CFDP protocol. Bug 9517 ↵Michael Mann1-175/+194
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9517) From Juan Antonio svn path=/trunk/; revision=54482
2013-12-21Add missing includesJakub Zawadzki1-0/+1
svn path=/trunk/; revision=54332
2013-12-19Rename more to_str functions to have ep_ in the name if they return ephemeralEvan Huus1-1/+1
buffers. Remove two unused functions. svn path=/trunk/; revision=54250
2013-12-14Fix warningsJakub Zawadzki1-0/+2
svn path=/trunk/; revision=54089
2013-09-15Convert proto_tree_add_uint_format to proto_tree_add_uint_format_value if ↵Michael Mann1-4/+4
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-07-15Fix warning: ISO C does not support %n$ operand number formats.Chris Maynard1-1/+1
svn path=/trunk/; revision=50637
2013-05-25Batch of filterable expert_infos.Michael Mann1-3/+11
svn path=/trunk/; revision=49581
2013-01-31Comment out unused hf[] entries & etc.Bill Meier1-3/+9
(found by checkhf) svn path=/trunk/; revision=47389
2012-11-29Make all enum_val_t's const.Jeff Morriss1-1/+1
svn path=/trunk/; revision=46292
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-07-11Fix compile error.Bill Meier1-1/+1
svn path=/trunk/; revision=43674
2012-07-11Add some initializers to prevent some not really valid compiler warnings.Bill Meier1-4/+4
svn path=/trunk/; revision=43673
2012-07-11Don't call expert_...() under 'if (tree)';Bill Meier1-38/+37
Prefs callback not needed. svn path=/trunk/; revision=43667
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-2/+1
In a few cases: do some whitespace, indentation cleanup & reformatting. svn path=/trunk/; revision=42632
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-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵Bill Meier1-1/+1
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-19/+19
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-04-27From Yaniv Kaul:Bill Meier1-4/+2
Some fixes for 'set but not used' errors that GCC 4.6 emits. svn path=/trunk/; revision=36910
2011-02-07Update URL (the document now includes all updates through TechnicalGuy Harris1-1/+1
Corrigendum 1; presumably that's the "c1"). svn path=/trunk/; revision=35846
2010-10-27From Matt Parrisimo:Jaap Keuter1-25/+171
Calculate packet length and checksum. svn path=/trunk/; revision=34664
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalGuy Harris1-1/+1
argument indicating whether to include the time zone in the string. If we're constructing a display filter, don't include the time zone, otherwise do. Fixes bug 4756. svn path=/trunk/; revision=32913
2010-04-25Reapply SVN #27273 which was lost when SSVN #27768 was aspplied.Bill Meier1-2/+3
"http://stationpayloads.jsc.nasa.gov/J-reference/documents/ssp57002B.pdf is a dead link; supply another link, to a document that describes *some* of this." svn path=/trunk/; revision=32557
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-02-27Add a third date format, ABSOLUTE_TIME_DOY_UTC, to show UTC with theGuy Harris1-63/+6
date as YYYY/DDD, where DDD is a 1-origin day of year. Move the formats to a "time_fmt.h" file, included by the headers that use it. Have abs_time_to_str() and abs_time_secs_to_str() take the date format value, rather than a Boolean "show this as UTC" flag, as an argument. Document the ABSOLUTE_TIME_ formats a bit better. Use that format in the CCSDS and VCDU dissectors, rather than having those dissectors do the formatting themselves. svn path=/trunk/; revision=32034
2010-02-27Temporarily un-staticize utc_to_julian(); it needs to be hoisted up intoGuy Harris1-1/+1
libwireshark, for use by multiple dissectors. svn path=/trunk/; revision=32026
2010-02-27Staticize.Guy Harris1-1/+1
svn path=/trunk/; revision=32025
2009-08-09Don't guard col_set_str (COL_INFO) with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29342
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29340
2009-03-19- Move register_dissector(...) from proto_reg_handoff() to proto_register();Bill Meier1-3/+3
- Use dissector_add_handle("udp",...) rather than dissector_add(""udp",0,...) svn path=/trunk/; revision=27794
2009-03-18From Patrick A Baldwin:Anders Broman1-96/+447
Enhancements for CCSDS Dissectors. svn path=/trunk/; revision=27768
2009-01-20http://stationpayloads.jsc.nasa.gov/J-reference/documents/ssp57002B.pdfGuy Harris1-2/+3
is a dead link; supply another link, to a document that describes *some* of this. svn path=/trunk/; revision=27273
2009-01-18From Matt P:Jaap Keuter1-0/+1
CCSDS packets may reside within an 802.3 packet. This patch provides a way for the CCSDS dissector to be called from the 802.3 dissector. svn path=/trunk/; revision=27257
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-3/+3
svn path=/trunk/; revision=18196
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
2005-03-29README.developer says:Gerald Combs1-1/+1
"PROTOABBREV A name for the protocol for use in filter expressions; it should contain only lower-case letters, digits, and hyphens." In proto_register_protocol(), generate a warning if PROTOABBREV contains invalid characters. Along with the list above, allow underscores and periods. Fix up whitespace. Lower-case PROTOABBREV in several dissectors. svn path=/trunk/; revision=13967
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+259
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