aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
AgeCommit message (Collapse)AuthorFilesLines
2007-08-22autoscroll_button is not used if we don't HAVE_LIBPCAP so put it inside the ↵Jeff Morriss1-2/+2
#ifdef svn path=/trunk/; revision=22589
2007-08-22gcc 4 doesn't like my macro for getting the interface description: it says ↵Jeff Morriss1-10/+12
there's an invalid lvalue in it. I don't see what's wrong with it, but replace the macro with a function. Also: don't include the .xpm files in gtk/main.c if we're building without PCAP (as they're not used in that configuration). svn path=/trunk/; revision=22588
2007-08-22Fix bug http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1757 :Jeff Morriss3-28/+47
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-08-18Add #include needed to get defs for PT_PCMU & etcBill Meier1-0/+1
svn path=/trunk/; revision=22549
2007-08-18Use #defines, rather than raw numbers, for RTP payload types.Guy Harris1-5/+15
Note that we should return an error for payload types we don't support, so the user knows we can't handle the audio. svn path=/trunk/; revision=22547
2007-08-17Instead of converting between 802.11 frequencies and channels umpteenGerald Combs3-97/+92
different ways, add a set of common conversion routines. Add a "Frequency/Channel" column and fill it in where we can. Fix RSSI column printing in PPI. Fix up whitespace along the way. svn path=/trunk/; revision=22538
2007-08-16mark some parameters as unusedUlf Lamping1-3/+3
svn path=/trunk/; revision=22532
2007-08-16experimental feature: dissector filtersUlf Lamping3-13/+75
add the possibility, that a dissector writer can provide (usually non-trivial) display filters specific for the protocol in question (with an example in packet-dcerpc-pn-io.c), that will appear in the GUI svn path=/trunk/; revision=22530
2007-08-16fix build problems under Win32Ulf Lamping1-1/+4
svn path=/trunk/; revision=22523
2007-08-16Initial work on merging common code between follow TCP & SSL stream featuresStephen Fisher6-1295/+822
svn path=/trunk/; revision=22520
2007-08-11Fixing the GTK1 build shouldn't break the GTK2 build.Jaap Keuter1-1/+1
svn path=/trunk/; revision=22485
2007-08-09Fix GTK1 compilation.Jaap Keuter1-3/+2
svn path=/trunk/; revision=22479
2007-08-07Make sure that wiretap plugins are loaded before dissectors are (if a new ↵Luis Ontanon1-1/+0
encap type is registered the plugin probably needs it before reg_handoff) svn path=/trunk/; revision=22461
2007-08-04Change the export object/export object http code to only be includedStephen Fisher3-7/+9
in the code for GTK versions 2.4 and up instead of 2 and up. svn path=/trunk/; revision=22455
2007-08-02Add a "-S" flag to dumpcap, which prints out interface statistics. UseGerald Combs1-68/+18
this in the GUI rather than calling pcap_stats() directly. This gets rid of the last pcap_open_live() call in the GUI code. Update README.packaging. svn path=/trunk/; revision=22443
2007-07-25from Florent DROUIN:Luis Ontanon1-8/+17
I did load an k12 file (.rf5), and want to save the selected frames in a new file. I got the error "Wireshark can't save this capture in that format" I think this is due to this correction: http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=22214 I have got a patch to force the type of file to libpcap, only if no other format is available. It should solve both problems. svn path=/trunk/; revision=22403
2007-07-23for the Ethernet conversation filter, don't use ethertype but the data link ↵Ulf Lamping1-2/+4
address type being Ethernet. If the ethertype field is a length (0-1500), it will contain 0 - and the filter wouldn't work that way svn path=/trunk/; revision=22389
2007-07-20Remove the "-I" flag from dumpcap, and add a "-M" flag used to specifyGerald Combs2-2/+2
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-07-18Make debugging static.Michael Tüxen1-1/+1
svn path=/trunk/; revision=22347
2007-07-17Don't use gtk_clist_row_is_visible() but rather eth_clist_row_is_visible() ↵Jeff Morriss1-1/+1
so that GTK1.2 builds work (without a warning). svn path=/trunk/; revision=22335
2007-07-16Fix a couple "cast to pointer from integer of different size" warnings when ↵Jeff Morriss3-4/+4
building with GTK1.2 on Redhat AS4 64-bit svn path=/trunk/; revision=22329
2007-07-09From Dustin Johnson: AirPcap display update.Gerald Combs1-1/+5
svn path=/trunk/; revision=22278
2007-07-09From Dustin Johnson: If "Update list of packets in real time" andGerald Combs2-1/+21
"Automatic scrolling in live capture" are both enabled, make the scroll bar behavior more natural. If the packet list is scrolled to the bottom, scroll automatically. If the user scrolls back, keep the packet list scrolled at that point instead of jumping back to the end. svn path=/trunk/; revision=22277
2007-06-29Add 422 "Session Timer Too Small" response code from RFC 4028Martin Mathieson1-0/+1
svn path=/trunk/; revision=22222
2007-06-27Fix a bug where you couldn't save individual packets from a file type thatStephen Fisher1-1/+7
Wireshark doesn't support writing to. The default in the drop-down menu was libpcap, but since gtk_option_menu_set_history() doesn't send the activate signal we set up earlier, you would have to manually click on the drop-down and reselect libpcap for it to work. Now it works as expected. svn path=/trunk/; revision=22214
2007-06-27In the wireless key management dialog, apply the 802.11 preferences whenGerald Combs1-45/+12
the "OK," "Apply," or "Cancel" buttons are pressed. Remove some duplicate code. Add a comment about "Cancel" not working as expected. svn path=/trunk/; revision=22211
2007-06-27If we have problems with "Save All" in the HTTP object list, show a singleGerald Combs1-16/+26
error dialog instead of one dialog per unsaved file. svn path=/trunk/; revision=22198
2007-06-23Updates to initial check-in of pixmap saving feature:Stephen Fisher2-10/+13
- Bump minimum GTK version from 2.4 to 2.6 in code and users manual - Free some strings after we're done with them svn path=/trunk/; revision=22170
2007-06-22Fix enhancement bug #1337: Export IO GraphsStephen Fisher5-1/+234
This new code adds a save button to the Statistics IO Graphs window and is also reusable by any other code that uses GDK Pixmaps to draw graphs. The Gdk-pixbuf library included in GTK is used for this save function. svn path=/trunk/; revision=22166
2007-06-17gtk1 does not have gtk_window_get_modalRonnie Sahlberg1-0/+2
svn path=/trunk/; revision=22120
2007-06-17column_entry_changed_cb is not used by the GTK1 code. ifdef it out for Ronnie Sahlberg1-15/+3
gtk1 svn path=/trunk/; revision=22119
2007-06-17Fix bug #1334 and a problem where a user couldn't interact with theStephen Fisher3-10/+25
filter dialog's add expression dialog when going to it through file->open or file->merge (because dialogs in between are set to modal). svn path=/trunk/; revision=22115
2007-06-12Just keep it simple.Jaap Keuter1-4/+4
svn path=/trunk/; revision=22081
2007-06-11One more step in privilege separation.Gerald Combs4-64/+65
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-06-04Fix for bug #93: changes to the columns has no effect until restartStephen Fisher6-46/+54
These changes allow the packet list clist to be destroyed and recreated with the new column titles/values/order that the user changed in the preferences without restarting Wireshark. svn path=/trunk/; revision=22038
2007-06-03(Minor) Use _WIN32 (instead of WIN32) like the rest of Wireshark Bill Meier1-1/+1
svn path=/trunk/; revision=22030
2007-05-31From Lars Ruoff:Stephen Fisher3-14/+14
find attached several trivial diffs for viewing RTP SSRC values in Hex rather than Dec at various places in the UI. Also includes change from BASE_DEC to BASE_HEX_DEC for corresponding RTP and RTCP dissector header fields. svn path=/trunk/; revision=22017
2007-05-30Fix bug #1530 this time for GTK1 builds.Stephen Fisher2-2/+9
svn path=/trunk/; revision=22009
2007-05-30Update to revision 22000: change #if GTK_MAJOR_VERSION > 2 to >= 2Stephen Fisher1-1/+1
svn path=/trunk/; revision=22001
2007-05-30Wrap call to gtk_window_set_destroy_with_parent() within check for ↵Stephen Fisher1-0/+4
GTK_MAJOR_VERSION > 2 to get the Windows build-bot going again. This means that bug #1530 has to be reopened awaiting a fix that covers GTK1 also. svn path=/trunk/; revision=22000
2007-05-29Fix for bug #1530: Graph Analysis window misbehaves if Flow Window thatStephen Fisher3-2/+12
created it is closed. The fix is to close the graph analysis window when the flow graph setup window is closed since closing the flow graph window first destroys all of the data structures. svn path=/trunk/; revision=21994
2007-05-29Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLibGuy Harris5-30/+30
routines and routines using those routines. GLib might use different modifiers for 64-bit quantities than the platform's C library does. svn path=/trunk/; revision=21990
2007-05-29Check for G_GINT64_MODIFIER in Wireshark as we do in Wiretap.Guy Harris4-12/+12
In all the places where a cast to "long long" or "unsigned long long" was done, use G_GINT64_MODIFIER and get rid of the cast, as 1) there's no guarantee that "%ll" works and 2) there's no guarantee that "long long" works (the latter definitely does *NOT* work with MSVC++; the former doesn't work with regular printf in MSVC++, but it might work with the GLib printf-based functions). svn path=/trunk/; revision=21978
2007-05-29From David Howells :Sebastien Tandel21-51/+51
Fix compilation failures when building wireshark-0.99.6-SVN-21916 on an x86_64-unknown-linux-gnu target with gcc version 4.1.2 20070403 (Red Hat 4.1.2-8). The failures fall into two categories: (1) Casts between pointers and 32-bit integers without an intermediary cast via 'long' or 'unsigned long'. This results in a compiler warning complaining about casts between a pointer and an integer of a different size. (2) Passing values to "%lld" or similar printf-style format options that the compiler thinks are a different size. Such values need to be cast to 'long long' or 'unsigned long long'. svn path=/trunk/; revision=21975
2007-05-29fix warnings for gcc 4.2Sebastien Tandel1-1/+1
svn path=/trunk/; revision=21974
2007-05-25Squelch some qualifier (const vs. non-const) warnings.Guy Harris9-26/+26
svn path=/trunk/; revision=21938
2007-05-25As Martin pointed out, we were comparing the wrong variable against our Gerald Combs1-1/+1
modifier mask (and using the wrong bitwise operator to boot). svn path=/trunk/; revision=21937
2007-05-25Have editcap and capinfos loading the wiretap plugins.Luis Ontanon1-5/+0
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. svn path=/trunk/; revision=21935
2007-05-25- epan/uat.h: change the UAT_PROTO_DEF macro to handle both the name of the ↵Luis Ontanon1-4/+3
dissector and the handle - packet-user_encap.c: use the new UAT_PROTO_DEF - gtk/uat_gui.c: change the order of "containment" of the widgets to have the clist fields sized to the scrolledwindow instead of the whole window svn path=/trunk/; revision=21934
2007-05-24Prepare wireshark and tshark for wiretap pluginsLuis Ontanon2-7/+10
svn path=/trunk/; revision=21928