aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.common
AgeCommit message (Collapse)AuthorFilesLines
2010-03-07Use strtok_s on windows and strtok_r otherwise.etxrab1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32138 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-04In Wireshark and TShark, run dumpcap to get interface lists and lists ofguy1-5/+17
link-layer header types for interfaces; if special privileges are necessary to open capture devices, Wireshark and TShark shouldn't have those privileges, but dumpcap should. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32104 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-06Invert check for getopt: NEED_GETOPT_H -> HAVE_GETOPT_Hstig1-2/+2
Rename getopt.[ch] -> wsgetopt.[ch] to avoid name collision. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30370 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-31Remove strcasecmp. We use g_ascii_strcasecmp exclusivelykrj1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29643 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-02Pull mkstemp() into tempfile.c. That's the only place we use it now, andgerald1-2/+0
it's arguably the only place we _should_ use it. Add create_tempdir() to tempfile.c and use it to create a temp directory for IP maps. This should fix bug 3530. (This still doesn't work on IE 8 / Vista here. IE gives an access denied error in OpenLayers.js, but this is a separate issue). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28920 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-20From Vincenzo Condoleo via bug 2589:gerald1-0/+1
Add IP packet comparison statistics. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28426 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-31Add tap-megaco-common.h, so it'll show up in the distribution tarball.guy1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27145 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-31Service response time statistics for MEGACO (CLI part).rbalint1-0/+2
Refactored GUI part to avoid code duplication. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27143 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-30Move privileges.c and unicode-utils.c from epan to wsutil (so things likemorriss1-6/+2
capinfos and dumpcap don't need to depend on libwireshark nor directly pull in those modules). Because capinfos and editcap were only being linked with privileges.c if we had plugins, this allows those programs to be linked when someone is compiling --without-plugins. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25640 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-21Revert incorrect change which killed *nix buuilds...wmeier1-6/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25504 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-21Fix editcap Windows build problem.....wmeier1-5/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25501 f5534014-38df-0310-8fa8-9805f1628bb7
2008-06-21From Ken Smith (bug 2574): Allow editcap to parse files into even time intervalssake1-0/+1
A few changes from me: - make use of nstime_set_unset and nstime_is_unset i.s.o. extra variable first_pass - change 'if' to 'while' to allow intervals with no packets - remove 'unused' variable current_pkt_ts git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25499 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-12various code cleanupulfl1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24964 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-12And remove tap_dfilter_dlg.hstig1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24959 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-12Removed menu.hstig1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24955 f5534014-38df-0310-8fa8-9805f1628bb7
2008-04-12move statusbar related code from main.c into it's own main_statusbar.culfl1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24937 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-16Pull capture_loop.c into dumpcap.c, as dumpcap is the only program thatguy1-2/+0
does capturing any more. (We will be inserting a call to give up privileges after the pcap_open_live(), which should fix 2273; we're currently only giving up privileges on platforms with libcap.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24345 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-16rawshark doesn't appear to need pcapio.c, either.guy1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24343 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-16Remove from rawshark_SOURCES some files that rawshark doesn't appear toguy1-6/+0
need. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24342 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-15Add rawshark, a utility that, when given raw pcap-formatted packets andgerald1-0/+12
a list of fields, prints the field values found in each packet. Packet data can be specified as a libpcap DLT, e.g. "EN10MB" or an upper-layer protocol, e.g. "http". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24339 f5534014-38df-0310-8fa8-9805f1628bb7
2008-02-03From Balint Reczey (bug 2233):sake1-0/+3
The attached patch makes the Statistics -> RTP -> Show All Streams feature of wireshark accessible via tshark. I found it helpful in dealing with tons of RTP captures. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24252 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-20If libcap is present, have dumpcap use it to drop privileges whilegerald1-2/+5
retaining CAP_NET_ADMIN and CAP_NET_RAW. Update some Makefile dependencies for dumpcap. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23511 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-26Move sync_pipe_write.c to WIRESHARK_COMMON_SRC since it is now also neededsfisher1-1/+1
by tshark as well as Wireshark to fix compilation on Unix platforms. This is due to the introduction of capture_sync.c (which calls sync_pipe_errmsg_to_parent) to tshark_SOURCES in SVN revision 22969. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22981 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-25remove trailing backslashulfl1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22973 f5534014-38df-0310-8fa8-9805f1628bb7
2007-09-25as "advertised" some days ago:ulfl1-11/+10
rewrite the tshark capture code almost completely, to use dumpcap instead of it's own pcap functionality. This works on Win32 and should work on unix/linux (but I'm not sure here). Some stuff needs to be cleaned up, some more may need to be rewritten to specifically work with unix/win32. Futher work needs to be done at: 1. read filters (simply document current behaviour?) 2. event loop polling 3. privileges 4. code cleanup (e.g. in capture_loop.c) Be prepared that tshark might not work as before / expected at least in the next days! git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22969 f5534014-38df-0310-8fa8-9805f1628bb7
2007-06-27Put airpcap.h back in the distribution.gerald1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22215 f5534014-38df-0310-8fa8-9805f1628bb7
2007-06-17Have editcap and capinfos compile --without-pluginslego1-8/+2
Should go in 0.99.6 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22116 f5534014-38df-0310-8fa8-9805f1628bb7
2007-06-11Fix compilation under VS6 (hopefully without breaking compilationgerald1-0/+3
anywhere else). Instead of using getaddrinfo() and getnameinfo(), promote inet_pton.c and inet_ntop.c to the top level and use those routines instead. (It's 2007, for crying out loud. Why is this even an issue?) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22075 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-25Have editcap and capinfos loading the wiretap plugins.lego1-1/+12
epan/filesystem.c have get_plugin_dir() calling init_plugin_dir() if necessary epan/epan.c and epan/report_err.c move the report_failure family into the new report_err.c file, have epan_init() calling the initializer epan/plugins.h and epan/proto.c do not have init_plugins() calling the proto_reg functions instead do it in init_proto() gtk/main.c and tshark.c init_plugin_dir() has become suprefluous capinfos.c and editcap.c load the wiretap plugins Makefiles do what's needed to build withe the above changes. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21935 f5534014-38df-0310-8fa8-9805f1628bb7
2007-05-18From Dustin Johnson:gerald1-1/+0
- Update the wireless/AirPcap GUI code to support 802.11n as well as some related upcoming code changes. - Remove airpcap.h from the repository, since it exists in the AirPcap devpack (and will be superseded Real Soon Now). - Show the individual channel flag bits in radiotap. Fix the 802.11n MCS set display. This is a partial checkin, so hopefully nothing is broken. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21831 f5534014-38df-0310-8fa8-9805f1628bb7
2007-01-02Move epan/crypt-md5.[ch] to epan/crypt. Removegerald1-1/+1
epan/crypt/airpdcap_md5.[ch]. Fix up whitespace. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@20277 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-24From Alejandro Vaquero:etxrab1-0/+1
For the Radius dissector to add statistics in the "Service Response Time" menu and the tshark stats. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19668 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-06Add airpcap.h to the distribution.gerald1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19442 f5534014-38df-0310-8fa8-9805f1628bb7
2006-10-04Finally got it to complie.etxrab1-0/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19427 f5534014-38df-0310-8fa8-9805f1628bb7
2006-09-22Add support for reading from stdin under Windows. Based on a patch sentgerald1-1/+2
in last year by Gianluca Varenni. Add partial support for reading from named pipes (currently disabled). Move utf_8to16() and utf_16to8() to a separate module (unicode-utils.[ch]) so that we don't have to cut and paste code in dumpcap.c. Fix up whitespace. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19291 f5534014-38df-0310-8fa8-9805f1628bb7
2006-08-16Add support for AirPcap, an upcoming wireless product from CACE. Supportgerald1-0/+2
is disabled by default, and can be enabled by setting AIRPCAP_CONFIG in config.nmake. The code is currently limited to Windows, but should be adaptable to other platforms. The official announcement won't come until next week, so you'll have to read the source for details. :) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18928 f5534014-38df-0310-8fa8-9805f1628bb7
2006-07-27Add duplicate frame detection (and removal) to editcap. (Some switchesgerald1-1/+2
generate duplicate packets when a mirror/SPAN port is misconfigured). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18800 f5534014-38df-0310-8fa8-9805f1628bb7
2006-07-20we dont need our own snprintf any more since we always use g_snprintf() instead.sahlberg1-3/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18771 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-31More ethereal -> wireshark.gerald1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18292 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-31Rename the main executable to "wireshark", along with more conversions:gerald1-11/+11
ethereal.com -> wireshark.org mailing lists and addresses ETHEREAL -> WIRESHARK Man pages Automake/Autoconf names git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18271 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-31Tethereal/tethereal -> TShark/tshark.gerald1-9/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18268 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21name changesahlberg1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18197 f5534014-38df-0310-8fa8-9805f1628bb7
2006-04-03Put the low-level sync routines into a common file so they can be sharedguy1-0/+3
by dumpcap and Ethereal (so that, on UN*X, the child process can report a detailed "can't exec dumpcap" error). Rename most of the "sync_pipe_XXX_to_parent()" routines, as they're also in Tethereal, which doesn't have a sync pipe. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17789 f5534014-38df-0310-8fa8-9805f1628bb7
2006-03-04When capturing, we only support writing to libpcap files. Given that,guy1-0/+3
bypass Wiretap; that means we don't have to run the packet through wtap_process_pcap_packet() and then undo that conversion in Wiretap if we're just going to write it out, shortening the code path. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17461 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-24Add the (still unfinished) tethereal side of the funnel.lego1-0/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17396 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-15Check for getopt in the configure script, as we do for other routinesguy1-4/+4
not available on all platforms. Include getopt.c in EXTRA_ethereal_SOURCES and include getopt.h in EXTRA_ethereal_INCLUDES, as we do with the other files that supply routines not available on all platforms, rather than always including them in the source for dumpcap. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17311 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-13Add tempfile.h to the list of headeer files. That was the problem, notguy1-0/+1
the pathname in the #include. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17280 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-12Move create_tempfile() to tempfile.c out of util.c. This means dumpcapguy1-8/+10
no longer needs util.c, so it no longer includes routines that use host_ip_af(), so it no longer needs to define its own host_ip_af(). That also means dumpcap.c no longer needs to include <sys/socket.h>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17278 f5534014-38df-0310-8fa8-9805f1628bb7
2006-02-11the point of no return ...ulfl1-1/+0
using dumpcap as the capture child for Ethereal. dumpcap is a plain console application now, even for Win32 (so no WinMain, create_console and special piping stuff reguired). The undocumented command line option -Z will switch dumpcap into "child mode", using binary instead of plain text output messages to communicate with a parent Ethereal. Ethereal's main.c no longer needs to distinguish between child mode or not, so some simplifying here. capture_sync.c has to call dumpcap in a "hidden window" mode using CreateProcess instead of spawnvp, otherwise an uggly console window would appear. The handles created by _pipe doesn't seem to be inheritable for this function, using CreatePipe instead. The file capture_loop.c is only needed by dumpcap, removed from Ethereal link objects. Some debugging aid added and other minor cleanup done. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@17256 f5534014-38df-0310-8fa8-9805f1628bb7
2005-12-13HUGE STEP (hopefully toward the right direction):ulfl1-0/+1
remove a lot of redundant code from tethereal and use (move) stuff from capture_loop.c instead. concentrate common capture related code in capture_opts.c, e.g. trying to find the right interface to capture from (command line option, preference, first usable) instead of duplicating this code over several files. remove redundant code from dumpcap.c this also implements command line option -D (and indexed interfaces at -i) for Ethereal and Dumpcap (as we have it in Tethereal already for a while) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16787 f5534014-38df-0310-8fa8-9805f1628bb7