aboutsummaryrefslogtreecommitdiffstats
path: root/rawshark.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-17Start moving files to ui/ and ui/cli/Jörg Mayer1-1/+1
svn path=/trunk/; revision=41047
2011-12-29Swallow cant_load_winpcap_err() up into capture-wpcap.c, so thatGuy Harris1-1/+0
anything that uses WinPcap can use that message text in its error messages. svn path=/trunk/; revision=40335
2011-12-13Rename WTAP_ERR_BAD_RECORD to WTAP_ERR_BAD_FILE; it really reports anyGuy Harris1-2/+2
form of corruption/bogosity in a file, including in a file header as well as in records in the file. Change the error message wtap_strerror() returns for it to reflect that. Use it for some file header problems for which it wasn't already being used - WTAP_ERR_UNSUPPORTED shouldn't be used for that, it should only be used for files that we have no reason to believe are invalid but that have a version number we don't know about or some other non-link-layer-encapsulation-type value we don't know about. svn path=/trunk/; revision=40175
2011-09-27Minor formatting changes to the rawshark -h output.Chris Maynard1-3/+5
svn path=/trunk/; revision=39165
2011-09-21Fix ex "modeline" so it works;Bill Meier1-1/+1
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748 svn path=/trunk/; revision=39081
2011-08-09Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5608 :Jeff Morriss1-3/+1
getopt() can/should normally be found in unistd.h, so: - When testing for getopt(), define that we HAVE_GETOPT instead of HAVE_GETOPT_H (to avoid confusion). - Don't attempt to include getopt.h: not all OS's have it (for example, Solaris 9 does not). - (All the places which need getopt already include unistd.h (if we have it).) If this breaks things on some OS, we might need (a real) HAVE_GETOPT_H check. svn path=/trunk/; revision=38437
2011-07-04From Michael Mann:Anders Broman1-0/+4
Added ability to display UTC time or UTC time with date. I liked having the difference between UTC and local time, not just setting local=UTC. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2629 svn path=/trunk/; revision=37898
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-18/+14
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2011-05-24Move the Windows argument list conversion code to a common routine.Gerald Combs1-10/+2
svn path=/trunk/; revision=37372
2011-04-21Add missing code to handle fields with an extended value_string ↵Jakub Zawadzki1-0/+4
(BASE_EXT_STRING) svn path=/trunk/; revision=36749
2011-04-21Add a new WTAP_ERR_DECOMPRESS error, and use that for errors discoveredGuy Harris1-5/+10
by the gunzipping code. Have it also supply a err_info string, and report it. Have file_error() supply an err_info string. Put "the file" - or, for WTAP_ERR_DECOMPRESS, "the compressed file", to suggest a decompression error - into the rawshark and tshark errors, along the lines of what other programs print. Fix a case in the Netscaler code where we weren't fetching the error code on a read failure. svn path=/trunk/; revision=36748
2011-04-10Rename ws_stat to ws_stat64, and make it take a pointer to a ws_statb64Guy Harris1-2/+2
as an argument, along the lines of ws_fstat64, and, on Windows, make it use _wstati64, to handle 64-bit file sizes. svn path=/trunk/; revision=36547
2011-01-06On Windows, convert all of our command-line arguments from UTF-16 toGerald Combs1-1/+17
UTF-8 where we don't already do so. In Wireshark use g_utf16_to_utf8 instead of utf_16to8. This should fix bug 5520. svn path=/trunk/; revision=35411
2010-12-22Avoid the need for cf_mark_frame stubs.Jaap Keuter1-9/+0
svn path=/trunk/; revision=35248
2010-10-21Fixed "Compiled with" information in the About box.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=34601
2010-10-15Revision 27919 added the ability to feed a libpcap-formatted file toGerald Combs1-14/+34
rawshark but broke the ability to feed it live packets with a pcap_pkthdr prefix on some 64-bit architectures. Add a "-p" flag which lets us explicitly handle file-based or memory-based packet record headers. svn path=/trunk/; revision=34522
2010-10-12Rename g_resolv_flags --> gbl_resolv_flags; Also: cleanup some whitespace & ↵Bill Meier1-5/+5
indentation. svn path=/trunk/; revision=34487
2010-09-16Turn on ASLR via /DYNAMICBASE and DEP via SetProcessDEPPolicy().Gerald Combs1-2/+2
svn path=/trunk/; revision=34137
2010-07-15Move the code to get version information for libraries used byGuy Harris1-1/+1
libwireshark into libwireshark, and call it only in programs linked with libwireshark. That way, programs that don't link with libwireshark don't have to link with libgcrypt or libgnutls solely so that they can say that they're linked with a particular version of libgcrypt or libgnutls. Don't link dumpcap with libgcrypt or libgnutls any more. svn path=/trunk/; revision=33531
2010-07-14Get rid of no-longer-used variable.Guy Harris1-6/+0
svn path=/trunk/; revision=33511
2010-05-28Move some code (including the optional objects) into libwsutilJeff Morriss1-2/+2
svn path=/trunk/; revision=33012
2010-05-07Set default seconds type in rawshark and dftest.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=32709
2010-04-28 Let's not use tabs with tab-width=4; Convert tabs to spaces (with indent=4).Bill Meier1-1193/+1193
Also: use consistent indentation & remove any trailing blanks. svn path=/trunk/; revision=32588
2010-03-04"capture-pcap-util.h" include <pcap.h>, and <pcap.h>, for better orGuy Harris1-1/+0
worse, has no include-once guards; include it only once. svn path=/trunk/; revision=32110
2010-02-27Squelch compiler warnings.Guy Harris1-9/+10
Add a break statement where it appears to have been missing. svn path=/trunk/; revision=32041
2010-02-23Move the declarations of wtap_pcap_encap_to_wtap_encap() andGuy Harris1-2/+3
wtap_wtap_encap_to_pcap_encap() to wiretap/pcap-encap.h. Include it where it's needed; don't include other Wiretap headers where they're not needed. Include pcapng.h in pcapng.c, to declare the functions defined in pcapng.c. Add some casts to squelch some warnings, and add to a comment to indicate one of the problems. svn path=/trunk/; revision=31960
2010-02-23Squelch some warnings.Guy Harris1-6/+6
svn path=/trunk/; revision=31959
2010-01-29Fix various gcc -Wshadow warnings.Bill Meier1-4/+4
svn path=/trunk/; revision=31729
2009-12-19For fields of type FT_ABSOLUTE_TIME, have the "display" value be one ofGuy Harris1-5/+30
ABSOLUTE_TIME_LOCAL or ABSOLUTE_TIME_UTC, indicating whether to display the date/time in local time or UTC. (int)ABSOLUTE_TIME_LOCAL == (int)BASE_NONE, so there's no source or binary compatiblity issue, although we might want to eliminate BASE_NONE at some point and have the BASE_ values used with integral types start at 0, so that you can't specify BASE_NONE for an integral field. svn path=/trunk/; revision=31319
2009-11-10Removed an unused assignment.Stig Bjørlykke1-1/+0
svn path=/trunk/; revision=30915
2009-10-06Invert check for getopt: NEED_GETOPT_H -> HAVE_GETOPT_HStig Bjørlykke1-3/+4
Rename getopt.[ch] -> wsgetopt.[ch] to avoid name collision. svn path=/trunk/; revision=30370
2009-09-22Rename init_cap_file() to cap_file_init()Kovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=30073
2009-09-22Make frame_data_set_after_dissect() callers do the necessary checks insteadKovarththanan Rajaratnam1-2/+0
svn path=/trunk/; revision=30068
2009-09-22Refactor frame_data_init() into frame_data_set_before_dissect() and ↵Kovarththanan Rajaratnam1-3/+9
frame_data_set_after_dissect(). svn path=/trunk/; revision=30066
2009-09-21Move 'Delta timestamp to previous captured frame' calculation inside ↵Kovarththanan Rajaratnam1-1/+1
add_packet_to_packet_list(). This is done in order to streamline add_packet_to_packet_list() with frame_data_init(). Hopefully we can switch to frame_data_init() soon svn path=/trunk/; revision=30052
2009-09-21Move frame_data_init() declaration to frame_data.hKovarththanan Rajaratnam1-8/+1
svn path=/trunk/; revision=30033
2009-09-20Fix return type for frame_data_init()Kovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=30024
2009-09-20Introduce frame_data_cleanup() and start using itKovarththanan Rajaratnam1-9/+1
svn path=/trunk/; revision=30023
2009-09-20Use frame_data_init() instead of the locally defined fill_in_fdata(), which ↵Kovarththanan Rajaratnam1-70/+11
will be removed as part of this change svn path=/trunk/; revision=30022
2009-09-20Move verbose banner output to show_version() and tighten scope of some variablesKovarththanan Rajaratnam1-19/+28
svn path=/trunk/; revision=30020
2009-09-08Make tshark and rawshark use build_column_format_array() instead of ↵Kovarththanan Rajaratnam1-29/+1
duplicating the code svn path=/trunk/; revision=29803
2009-09-07Store the packet encapsulation type as gint8. Saves 3 bytes per packetKovarththanan Rajaratnam1-1/+3
svn path=/trunk/; revision=29767
2009-09-06Split a bunch of init routines into init() and cleanup(). This allows us to ↵Kovarththanan Rajaratnam1-0/+2
free memory properly on shutdown. This is an initial step. There's still some work to do. svn path=/trunk/; revision=29754
2009-08-13Introduce epan_dissect_init()/epan_dissect_cleanup(). These are used to ↵Kovarththanan Rajaratnam1-8/+8
initialise/cleanup stack allocated 'edt' structures. This should speed up dissection since we avoid some malloc traffic. svn path=/trunk/; revision=29404
2009-06-05Have tap listeners specify whether the "packet" routine requiresGuy Harris1-1/+1
a protocol tree; the column values. This includes stats-tree listeners. Have the routines to build the packet list, and to retap packets, honor those requirements. This means that cf_retap_packets() no longer needs an argument to specify whether to construct the column values or not, so get rid of that argument. This also means that there's no need for a tap to have a fake filter to ensure that the protocol tree will be built, so don't set up a fake "frame" filter. While we're at it, clean up some cases where "no filter" was represented as a null string rather than a null pointer. Have a routine to return an indication of the number of tap listeners with filters; use that rather than the global num_tap_filters. Clean up some indentation and some gboolean vs. gint items. svn path=/trunk/; revision=28645
2009-05-12Minor cleanup of "-h" output text.Bill Meier1-1/+1
svn path=/trunk/; revision=28334
2009-04-16Fix the last(?) of the Win64 compilation problems.Gerald Combs1-2/+2
svn path=/trunk/; revision=28065
2009-03-31Rawshark fixes from Duncan Salerno.Gerald Combs1-14/+39
svn path=/trunk/; revision=27919
2009-03-22Change the signature of init_progfile_dir() so the casting of theGuy Harris1-1/+1
function pointer (to main) to an argument to dladdr() is done in init_progfile_dir() rather than its callers. svn path=/trunk/; revision=27814
2009-03-22In Solaris, the second argument to dladdr() is just a void *, not aGuy Harris1-2/+1
const void *. svn path=/trunk/; revision=27813