aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.c
AgeCommit message (Collapse)AuthorFilesLines
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=45016
2012-08-02Move the AX.25 address routines to address_to_str.c, where they belong;Guy Harris1-24/+0
hopefully this will fix some of the build errors. svn path=/trunk/; revision=44219
2012-08-02From Richard Stearn: support for AX.25, including support forGuy Harris1-0/+24
LINKTYPE_AX25. svn path=/trunk/; revision=44211
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-05-07Trivial typo: of -> orChris Maynard1-1/+1
svn path=/trunk/; revision=42458
2012-04-04Make bit_offset in _tvb_get_bits64 and related functions unsigned. ThisGerald Combs1-2/+1
removes a potential buffer overflow and should fix a bunch of Coverity errors mentioned in bug 6878. We might want to do the same for no_of_bits. svn path=/trunk/; revision=41945
2011-12-14Put back the checks for null arguments, but report a dissector bug ifGuy Harris1-17/+44
we're given null pointers. Put in comments clarifying that some routines intentionally do *not* null terminate the strings they produce. svn path=/trunk/; revision=40194
2011-12-14Back the previous change out; I'll be checking in a change to throw aGuy Harris1-26/+18
dissector bug exception in cases where a null pointer was passed, as those really *are* dissector bugs (and I have a fix for the bug in question in the HP Teaming heartbeat dissector, which I'll be checking in later). svn path=/trunk/; revision=40193
2011-12-13Protect against NULL pointers as input. Based on the stacktrace provided, ↵Chris Maynard1-18/+26
this should avoid crashes reported in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6634 svn path=/trunk/; revision=40176
2011-06-07Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warningsBill Meier1-2/+0
svn path=/trunk/; revision=37600
2011-05-05Introduce ip6_to_str_buf_len (little cleaner version of inet_ntop6 from ↵Jakub Zawadzki1-0/+16
wsutil/inet_ntop.c) and use it instead of inet_ntop(AF_INET6, ...) - Add MAX_IP6_STR_LEN define. - use MAX_IP6_STR_LEN as a buffer size when ip6_to_str_buf() is used. svn path=/trunk/; revision=37000
2011-04-12Use g_strlcat instead of strcat: Coverity 632.Chris Maynard1-8/+8
svn path=/trunk/; revision=36598
2011-02-15From Matthew Parris:Jaap Keuter1-4/+4
Display "Day of Year" for January 1 as 1, not 0. svn path=/trunk/; revision=35949
2011-01-24Print "0 seconds" when time_val==0 in functions converting seconds to string.Stig Bjørlykke1-3/+3
svn path=/trunk/; revision=35640
2010-12-21Add a comment about not needing to g_free() the value returned from ↵Bill Meier1-0/+3
g_locale_to_utf8(). svn path=/trunk/; revision=35240
2010-12-01Fix a GCC error.Bill Meier1-1/+1
svn path=/trunk/; revision=35087
2010-12-01On Windows: convert _tzname[] strings from the system charset to UTF8 before ↵Bill Meier1-18/+49
use. In the Windows C Runtime the strings in the global array _tzname[] are encoded using the "system default ansi code page". They must be converted to UTF8 before use by Wireshark/GTK. (See comment in the code for details). Fixes Bug #5421 (I hope). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5421 Also: Fix bug: when the timezone name is not available from the system ?ST was used when ?DT should have been used (and vice-versa). svn path=/trunk/; revision=35086
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalGuy Harris1-34/+76
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-03 From Yaniv Kaul: constify parametersBill Meier1-21/+21
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 From me: Fix a number of instances where the function prototype or the function definition wasn't changed so there was a mismatch thus causing Windows (but not gcc) compilation errors. svn path=/trunk/; revision=32365
2010-04-02Revert SVN #32360 until Windows compilation errors corrected.Bill Meier1-18/+18
svn path=/trunk/; revision=32361
2010-04-02From Yaniv Kaul: constify parametersBill Meier1-18/+18
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4422 svn path=/trunk/; revision=32360
2010-02-27From Jakub Zawadzki: split off the address-to-string functions, exceptGuy Harris1-367/+9
for ip_to_str_buf(), into address_to_str.c. Fix up the SVN attributes for time_fmt.h while we're at it. svn path=/trunk/; revision=32038
2010-02-27Squelch some compiler warnings.Guy Harris1-6/+4
svn path=/trunk/; revision=32036
2010-02-27Add a third date format, ABSOLUTE_TIME_DOY_UTC, to show UTC with theGuy Harris1-27/+72
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-24From Jakub Zawadzki:Anders Broman1-2/+4
Don't sigsegv on negative bd_len in bytes_to_str* svn path=/trunk/; revision=31986
2010-02-23From Jakub Zawadzki:Anders Broman1-159/+268
Optimizations. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4303 svn path=/trunk/; revision=31967
2010-01-28Fix various gcc -Wshadow warnings.Bill Meier1-43/+43
svn path=/trunk/; revision=31720
2010-01-19Use more unique names for certain enum constants.Bill Meier1-15/+15
(enum constant names are part of the global name space). (Fixes at least one gcc -Wshadow warning). svn path=/trunk/; revision=31572
2009-12-11Protect against localtime() failing.Guy Harris1-8/+14
svn path=/trunk/; revision=31238
2009-12-11The pointer is "tmp", not "tm".Guy Harris1-6/+6
svn path=/trunk/; revision=31237
2009-12-11Squelch warnings.Guy Harris1-2/+2
svn path=/trunk/; revision=31236
2009-12-11Add the time zone abbreviation to the result of abs_time_to_str() andGuy Harris1-25/+51
abs_time_secs_to_str(). svn path=/trunk/; revision=31234
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()Guy Harris1-4/+18
indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. svn path=/trunk/; revision=31227
2009-12-09Note that there are similar functions to the "to_hexstr" functionsGuy Harris1-0/+6
in strutil.c. svn path=/trunk/; revision=31212
2009-12-08From Jakub Zawadzki:Stig Bjørlykke1-6/+6
Fix win64 build. svn path=/trunk/; revision=31204
2009-12-08From Jakub Zawadzki:Anders Broman1-21/+70
Replace some g_snprintf() with 'probably' faster version. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4303 svn path=/trunk/; revision=31201
2009-10-25From Jakub Zawadzki:Anders Broman1-14/+6
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 svn path=/trunk/; revision=30691
2009-09-06Reorder file to group related functionalityKovarththanan Rajaratnam1-307/+304
svn path=/trunk/; revision=29753
2009-09-06Change se_address_to_str() to call address_to_str_buf() directlyKovarththanan Rajaratnam1-2/+3
svn path=/trunk/; revision=29748
2009-09-06Rename address_to_str() to ep_address_to_str() because:Kovarththanan Rajaratnam1-8/+8
1) This indicates that the string has ephemeral lifetime 2) More consistent with its existing seasonal counterpart, se_address_to_str(). svn path=/trunk/; revision=29747
2009-07-20From Jakub Zawadzki via bug 3701:Stig Bjørlykke1-3/+3
Fix regressions in r29130 and r29133 In r29130 formating for DSECS was changed. (old: %01d now: %02d) In r29133 adding sign was removed (old: buf[0] = '-' now: buf[0] = '\0') svn path=/trunk/; revision=29146
2009-07-17Fix an ep buffer overrun introduced in r29130.Gerald Combs1-6/+17
svn path=/trunk/; revision=29133
2009-07-17From Kovarththanan Rajaratnam:Anders Broman1-20/+16
Optimize column fill path. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3701 svn path=/trunk/; revision=29130
2009-07-07Introduce se_address_to_str()Anders Broman1-0/+11
svn path=/trunk/; revision=28973
2009-06-25Unsigned does not have msign.Stig Bjørlykke1-7/+6
svn path=/trunk/; revision=28842
2009-06-25From Nathan Hartwell via bug 2733:Stig Bjørlykke1-0/+55
Added time_secs_to_str_unsigned(). svn path=/trunk/; revision=28840
2009-05-15Introduce decode_bits_in_field() and use it.Anders Broman1-0/+53
clean up some left owers from previous checkin. svn path=/trunk/; revision=28373
2009-04-08Fix the last commit.Gerald Combs1-2/+1
svn path=/trunk/; revision=28001
2009-04-08More size_t fixes.Gerald Combs1-31/+27
svn path=/trunk/; revision=28000
2008-09-30Check in a modified version of Alexey Neyman's patch from bug 2777. This shouldGerald Combs1-11/+15
also fix bug 2899. Make sure we only print a minus sign once and fixup a comment. svn path=/trunk/; revision=26302