aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/capture_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2007-08-30Change the "--enable-setuid-install" option to install dumpcap and TSharkGerald Combs1-0/+4
setuid instead of Wireshark. Remove the "DANGEROUS" notices, but leave it disabled by default. Whine if the user runs Wireshark or TShark as root. Add a preference to disable the whining. Add a "setuid-root" script that can be used to switch dumpcap and TShark's setuid-ness on and off for development and testing. Update the release notes and README.packaging. svn path=/trunk/; revision=22733
2007-08-22Fix bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1757 :Jeff Morriss1-1/+7
Try to call get_interface_descriptive_name() as little as possible (storing the result in capture_opts) to avoid a performance hit during live capture (especially if you have lots of interfaces) and to avoid leaking memory. One issue with this is that capture_opts.c cannot (without adding significant dependencies) set the iface_descr so readers of that field (only gtk/main.c and tshark.c) use a macro to (set if not already set and) get the value of that field. svn path=/trunk/; revision=22587
2007-07-20Remove the "-I" flag from dumpcap, and add a "-M" flag used to specifyGerald Combs1-1/+1
that "-D" and "-L" should produce machine-readable output. Use this to move an indirect get_pcap_linktype() call from the GUI to dumpcap. svn path=/trunk/; revision=22367
2007-06-11One more step in privilege separation.Gerald Combs1-2/+2
Add a capture_interface_list(), which works similar to get_interface_list() except that it forks dumpcap instead of calling the pcap routines directly. Use it in the GUI. Add a "-I" flag to dumpcap, which prints out verbose interface information. Tested under Windows and Linux. svn path=/trunk/; revision=22071
2007-05-18From Dustin Johnson:Gerald Combs1-2/+6
- 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. svn path=/trunk/; revision=21831
2007-04-13fix gcc warning about qualifier types (const) which are discarded when arrivingSebastien Tandel1-2/+3
at the pcap interface. svn path=/trunk/; revision=21417
2007-03-17Update to revision 21038 - line up the IP address label with theStephen Fisher1-1/+1
rest of the items in that part of the capture dialog. svn path=/trunk/; revision=21039
2007-03-16Fix bug #1375: Capture Options with many IP addresses scrolls offStephen Fisher1-2/+15
screen Changed IP address label to fit into an event box which is in the ip address hbox. This allows the label to expand to fit the capture dialog window, but no further. Expanding the capture dialog window will show more IP addresses. Left align the label. Add ... in the middle of a long list of IP addresses to show the first few and the last few with the gtk_label_set_ellipsize() function in GTK 2.6 and up. svn path=/trunk/; revision=21038
2007-01-23Propagate the recent interface list changes (r20521) to the AirPcap code.Gerald Combs1-4/+4
Fix a mismatched declaration found by Gisle Vanem. svn path=/trunk/; revision=20535
2007-01-21Have the routines to get interface lists take a pointer to a "gchar *"Guy Harris1-20/+15
as an argument, and, on an error, if they have an error message, have them set that "gchar *" to point to a g_malloc()ed string containing the error message, rather than taking a pointer to a buffer for that message as an argument. That's more like what's done in Wiretap, and doesn't impose an upper limit on the lengths of those error messages. If that pointer is null, don't allocate the message string and return it. Have that error message already have the "cant_get" processing applied to it, so nobody other than those routines need to call the "cant_get" routines to process the error messages. Have get_airpcap_interface_list() explicitly set "*err" to the appropriate error code. Clean up indentation. svn path=/trunk/; revision=20521
2006-12-22Make fix for bug 771 compatible with GTK1Jaap Keuter1-3/+6
svn path=/trunk/; revision=20201
2006-12-21From Florent Drouin:Jaap Keuter1-8/+29
Here is a patch for Bug 771. It solves the problem of datalink header selection, when the interface has more than one. svn path=/trunk/; revision=20186
2006-12-11remove some warningsUlf Lamping1-0/+2
svn path=/trunk/; revision=20116
2006-12-05From Davide Schiera and Giorgio Tino: Add initial WPA/WPA2 decryptionGerald Combs1-3/+8
support. WEP key preferences have been overloaded to allow WPA keys. The decryption code currently uses Windows-specific data types, but can be converted to use glib equivalents. Add a few text and whitespace fixups. svn path=/trunk/; revision=20049
2006-11-14nikai@nikai.net:Jörg Mayer1-1/+0
Remaining fixes from: http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1225 svn path=/trunk/; revision=19895
2006-10-02Fix WEP key bug in the AirPcap code that could cause a crash. EnableGerald Combs1-2/+2
AirPcap by default. Add initial support for the "Any" device in AirPcap (more to come). svn path=/trunk/; revision=19401
2006-08-26Get rid of unused variable.Guy Harris1-3/+0
svn path=/trunk/; revision=19039
2006-08-25don't show the "Wireless Settings" button if HAVE_AIRPCAP isn't definedUlf Lamping1-6/+8
svn path=/trunk/; revision=19031
2006-08-16Add support for AirPcap, an upcoming wireless product from CACE. SupportGerald Combs1-4/+127
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. :) svn path=/trunk/; revision=18928
2006-05-28Ethereal->WiresharkAnders Broman1-4/+4
svn path=/trunk/; revision=18232
2006-05-22Get rid of a bunch of "Ethereal"s and "ethereal"s in comments, GUIGuy Harris1-7/+7
strings, and function names. svn path=/trunk/; revision=18205
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-04-30Move the file selection dialog routines to file_dlg.c, and give it aGuy Harris1-0/+1
header file. #if 0 out some includes; if none of the builds have a problem with that, I'll remove them. svn path=/trunk/; revision=18036
2006-04-29Most of the stuff in file_dlg.c is specific to capture files, so renameGuy Harris1-1/+1
it to capture_file_dlg.c, and rename its header file. We might want to move the generic file dialog stuff to a file_dlg.c file (it's currently in dlg_utils.c), and move the non-capture-file dialog stuff in capture_file_dlg.c to another file. svn path=/trunk/; revision=18034
2006-04-03Set the right structure member.Guy Harris1-1/+1
svn path=/trunk/; revision=17792
2006-04-03In Tethereal, don't save to a temporary file if "-w" isn't specified,Guy Harris1-0/+2
even if doing a live capture; just print the packets without saving them. In dumpcap: default to the capturing the entire packet; don't do the "Press any key" stuff when debugging on UN*X; do console logging (to the standard error) even when we're running as the capture child (the sync pipe should only be the standard output, not the standard error). svn path=/trunk/; revision=17786
2006-02-23when including menu.h we also need to include stdio.h to get FILERonnie Sahlberg1-0/+1
svn path=/trunk/; revision=17391
2006-02-23Fix bug 741. Menu/Toolbar follow auto scroll checkbox in capture options.Jaap Keuter1-0/+2
svn path=/trunk/; revision=17389
2006-02-17remove dependencies to pcap.h, so getting an idea what needs to be done by ↵Ulf Lamping1-3/+2
dumpcap in addition to the things already done now various dumpcap related code cleanup: mainly #include's and capture engine related stuff svn path=/trunk/; revision=17327
2005-12-14Constify a bunch of arguments and variables, to squelch compilerGuy Harris1-3/+3
warnings. Include "wiretap/libpcap.h" in "capture_loop.h", to get its declarations of data structures for headers in libpcap files. This lets us remove the includes of "wiretap/libpcap.h from files including "capture_loop.h". Make "log_func_ignore()" in "tethereal.c" static, and declare some of its arguments unused. Also get rid of an unused variable. Include <pcap.h> before including "wiretap/wtap-capture.h", to declare "struct pcap_pkthdr". svn path=/trunk/; revision=16791
2005-12-06add a short comment to cant_load_winpcap_err() and use it in gtk/capture_dlg.cUlf Lamping1-16/+4
svn path=/trunk/; revision=16693
2005-12-06rename pcap-....c/.h files to capture-pcap-....c/.hUlf Lamping1-1/+1
this way, the capture prefix will "logically" group the files together and file browsers will also group them we may want to move the files into a subdir capture later svn path=/trunk/; revision=16691
2005-10-07fix Ethereal so command line capture parameter will work with kilobytes (again)Ulf Lamping1-32/+13
remove Byte(s) from the dropdown list of filesizes, this doesn't make sense replace 1000 with 1024, as all (modern?) file managers are based on 1024 bytes for a kilobyte (the old KB vs. KiB controversy) svn path=/trunk/; revision=16149
2005-10-05fix cant_load_winpcap_err() parameterUlf Lamping1-1/+1
svn path=/trunk/; revision=16123
2005-10-04Add a "capture_errs.c" routine to cough up error messages for captureGuy Harris1-18/+7
problems, and use the first routine in it in multiple places. Get rid of DISSECTOR_SUPPORT_INCLUDES - just add its contents to ETHEREAL_COMMON_INCLUDES. svn path=/trunk/; revision=16109
2005-10-03Win32: don't crash if Capture/Start is clicked and WinPcap is not installed.Ulf Lamping1-0/+23
svn path=/trunk/; revision=16093
2005-08-20renamed ui_util.c/.h to gui_utils.c/.h to prevent confusion with identical ↵Ulf Lamping1-1/+1
named ui_util.h in / dir svn path=/trunk/; revision=15465
2005-08-05More char -> const char warning fixes.Jörg Mayer1-2/+2
Removed (very few) casts that only change the warning message but don't remove it (with gcc-4). svn path=/trunk/; revision=15227
2005-06-03Update URLs and domain names that refer to the WinPcap site.Guy Harris1-1/+1
svn path=/trunk/; revision=14540
2005-04-27fix #117Ulf Lamping1-0/+10
give a warning, if user never selected an interface before svn path=/trunk/; revision=14208
2005-04-19fix some minor bugs with the current interface name:Ulf Lamping1-4/+10
-always show descriptive string in combo box -correct the initialization, so cancelling the option dialog won't make trouble svn path=/trunk/; revision=14144
2005-04-19ask for unsaved file when using the new start capture feature,Ulf Lamping1-53/+52
ask for unsaved file when really starting the capture, not already when showing the options dialog, use the start capture icon in the capture options dialog (instead of simply Ok) svn path=/trunk/; revision=14142
2005-04-19add some comments what all the functions going to do...Ulf Lamping1-3/+22
svn path=/trunk/; revision=14131
2005-04-16rename capture_clear() to capture_restart()Ulf Lamping1-2/+2
statusbar update should work now even in capture error case svn path=/trunk/; revision=14105
2005-04-15add some new capture and filter related handcrafted (toolbar) iconsUlf Lamping1-8/+38
add "new" capture options feature, which will act like old capture start, and change capture start option (for immediately capture) rename Capture/Clear to Capture/Restart svn path=/trunk/; revision=14083
2005-04-12capture engine: Ulf Lamping1-0/+6
add a new feature to clear the currently captured packets and restart the capture with the previous parameters various code cleanup and minor bugfixes Win32: use millisecond resolution in capture_loop, to smooth screen update a bit (500ms instead of 1000ms) svn path=/trunk/; revision=14059
2005-04-12it should now be possible to use "Update packets in real time" even if used ↵Ulf Lamping1-7/+7
with one of the "Multiple files" option. If this is used together with an option where input files changes too fast (e.g. new file every second), capturing will be (hopefully) stopped. I've replaced the former capture pipe message format into a somewhat more general format to remove a lot of confusion. svn path=/trunk/; revision=14054
2005-03-28various (minor) capture code cleanupUlf Lamping1-1/+1
svn path=/trunk/; revision=13957
2005-03-28fix Solaris build (I've removed O_BINARY)Ulf Lamping1-3/+3
rename sync_mode to real_time_mode, as we using sync_mode all the time now, so the name is misleading svn path=/trunk/; revision=13956
2005-03-25code cleanup: the term filter_list was used with different meanings ↵Ulf Lamping1-5/+5
throughout the code, and the filter_list of the color_filters is "global". use appropriate prefixes to avoid confusion and bugs svn path=/trunk/; revision=13905