aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/decode_as_dlg.c
AgeCommit message (Collapse)AuthorFilesLines
2005-07-24Constify to remove a bunch of warnings. Add some casts to squelchGuy Harris1-11/+12
(presumably-)harmless-but-otherwise-unremovable const-to-nonconst warnings. In the TACACS dissector, clean up the variables used in option parsing to avoid some const-to-nonconst warnings. Clean up some white space. svn path=/trunk/; revision=15043
2005-02-04huge cleanup of capture file API (functions in file.c/file.h).Ulf Lamping1-3/+3
This includes: all functions in file.h now have a cf_ prefix, will have doxygen tags, will have the capture_file *cf as the first parameter and I tried to generalize the return values for non trivial functions. Hopefully, I didn't introduced any new bugs, as I had to change a lot of files... svn path=/trunk/; revision=13289
2005-01-20add some more online help functionality and help buttons at various dialog ↵Ulf Lamping1-4/+23
boxes, if a help page *is* available. However, the new help system needs a lot more work before completed. svn path=/trunk/; revision=13152
2004-12-27Again, some warnings removed.Ulf Lamping1-1/+1
svn path=/trunk/; revision=12842
2004-10-14Fix bugs to get it working on gtk1 and gtk2.Michael Tüxen1-56/+33
Some clean ups. svn path=/trunk/; revision=12297
2004-10-12Support PPID and port number based selection for SCTP. From Irene Ruengeler.Michael Tüxen1-11/+221
svn path=/trunk/; revision=12284
2004-09-29Move various tables into the epan directory.Guy Harris1-1/+1
svn path=/trunk/; revision=12130
2004-09-16The list of protocols should be sorted in a case-insensitive fashion, soGuy Harris1-4/+4
giFT, iSCSI, and iSNS don't show up at the end. Protocol short names are ASCII, so just use "g_ascii_strcasecmp()". Clean up white space. svn path=/trunk/; revision=12020
2004-09-08sort_iter_compare_func() only needed with GTK2Ulf Lamping1-0/+2
svn path=/trunk/; revision=11937
2004-09-07Squelch a compiler warning.Guy Harris1-0/+1
svn path=/trunk/; revision=11933
2004-09-07added a Clear button to the Decode As dialog, also added some tooltips Ulf Lamping1-35/+67
svn path=/trunk/; revision=11929
2004-09-07replace the Cancel with a Close button, as pressing it will not rewind any ↵Ulf Lamping1-13/+12
previously applied operations svn path=/trunk/; revision=11928
2004-09-07two bugfixes: sort items in alphabetical order and don't do a ↵Ulf Lamping1-3/+48
OBJECT_GET_DATA on a NULL pointer svn path=/trunk/; revision=11925
2004-09-07First working implementation of "Decode As" for DCE-RPC interface bindings. ↵Ulf Lamping1-239/+90
Ethereal needs to capture the DCE-RPC bind sequence, to get a relationsship between the interface UUID and the current conversation. If this binding wasn't captured, one can use "Decode As" and choose the interface from a list corresponding to a specific conversation. Currently "only" implemented for connectionoriented (TCP) DCE-RPC, but connectionless is a work in progress. svn path=/trunk/; revision=11924
2004-09-06next steps for a "Decode As" for DCE-RPC interfaces (commented out)Ulf Lamping1-15/+207
svn path=/trunk/; revision=11917
2004-09-06Add the capability to chose to remap the fist two PPIDS in each SCTP packet ↵Michael Tüxen1-8/+28
to a different dissector. svn path=/trunk/; revision=11912
2004-08-28From Francisco Alcoba: fix a crashing bug caused if you change theGuy Harris1-5/+21
dissection for a given transport protocol port and there's no packet currently selected. svn path=/trunk/; revision=11843
2004-08-25Don't free something we haven't allocated.Guy Harris1-4/+5
svn path=/trunk/; revision=11829
2004-08-18Added initial SCTP support: You can chose how PPID 0 will be handled.Michael Tüxen1-2/+61
svn path=/trunk/; revision=11769
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-06-10From Stas Grabois: don't show disabled protocols in the "Add Expression"Guy Harris1-1/+6
and "Decode As" dialogs (so that you can cut down the size of the protocol lists in those dialogs by disabling "uninteresting" protocols). svn path=/trunk/; revision=11132
2004-05-26more code cleanup from dialog things:Ulf Lamping1-30/+29
changed window_xy (dialog) function calling in a lot of gtk files cleanup of file selection code cleanup in dlg_utils/file_dlg/ui_util Please report any problems!!! svn path=/trunk/; revision=11003
2004-03-13replaced sprintf / snprintf by g_snprintf,Ulf Lamping1-11/+11
various other string related changes svn path=/trunk/; revision=10373
2004-03-13various string related changesUlf Lamping1-4/+3
svn path=/trunk/; revision=10372
2004-02-06replaced every appearance of gtk_scrolled_window_new() withUlf Lamping1-9/+18
scrolled_window_new(). added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to scrolled_window_new() added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN) to every place needed svn path=/trunk/; revision=9999
2004-01-31Pass ESD_BTN_OK rather than NULL as a second argument toGuy Harris1-2/+2
"simple_dialog()"; NULL might be #defined to be a pointer expression on some platforms, causing compiler warnings (and, on platforms where a null pointer doesn't have all its bits 0, possibly causing misbehavior, although I don't think there are any such platforms on which Ethereal runs). Don't allow 0 as button mask argument to "simple_dialog()". Squelch a compiler warning. Report fatal problems as errors, not warnings. Report file I/O errors with "file_open_error_message()". Report file write errors (including those reported by "close()", e.g. some errors writing to an NFS server) when saving raw packet data to a file. svn path=/trunk/; revision=9915
2004-01-21implemented dlg_button_row_new to get a standard function forUlf Lamping1-37/+28
layouting the dialog buttons, and use it where appropriate. This will help us with the GTK1/2 conflict on button layouts and will also result in a more consistent look of the dialogs at all. svn path=/trunk/; revision=9771
2004-01-10using button compatibility macrosUlf Lamping1-20/+5
svn path=/trunk/; revision=9636
2003-09-07More int vs. uint.Guy Harris1-3/+3
svn path=/trunk/; revision=8409
2003-09-07Support string dissector tables in the Tethereal "decode as" stuff.Guy Harris1-36/+93
Make the Ethereal "decode as" stuff not blow up with string dissector tables. Selectors for uint dissector tables are unsigned, not signed. svn path=/trunk/; revision=8408
2003-03-01Add an "Apply" button to "Decode As" window.Laurent Deniel1-3/+40
svn path=/trunk/; revision=7243
2002-11-11Use gtk1/gtk2 compatibility macros.Olivier Abad1-8/+5
svn path=/trunk/; revision=6616
2002-11-09Use gtk1/gtk2 compatibility macros to reduce #ifdefs.Olivier Abad1-127/+42
svn path=/trunk/; revision=6597
2002-11-03Merge gtk and gtk2 directories.Olivier Abad1-127/+380
svn path=/trunk/; revision=6552
2002-10-10Add (back) some #include <string.h>Jörg Mayer1-1/+2
svn path=/trunk/; revision=6394
2002-09-05Include cleanups in gtk and gtk2:Jörg Mayer1-7/+1
Remove unneded includes Add include wrappers where missing svn path=/trunk/; revision=6191
2002-08-28Removed trailing whitespaces from .h and .c files using theJörg Mayer1-6/+6
winapi_cleanup tool written by Patrik Stridvall for the wine project. svn path=/trunk/; revision=6117
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-5/+1
equivalents for the gtk/ directory. svn path=/trunk/; revision=5930
2002-03-05From Joerg Mayer: use _U_ to flag unused arguments.Guy Harris1-14/+14
svn path=/trunk/; revision=4878
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-3/+3
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4586
2001-12-18Provide for per-protocol-tree data in the proto_tree code.Gilbert Ramirez1-1/+2
Put a hash-table of "interesting" fields in the per-proto-tree data. The dfilter code records which fields/protocols are "interesting" (by which I mean, their value or existence is checked). Thus, the proto_tree routines can create special arrays of field_info*'s that are ready for the dfilter engine to use during a filter operation. Also store the "proto_tree_is_visible" boolean, renamed "visible", in the per-proto-tree data. Move epan_dissect_t to its own header file to make #include dependencies easier to handle. Provide epan_dissect_fill_in_columns(), which accepts just the epan_dissect_t* as an argument. epan_dissect_new() needs to be followed by epan_dissect_run() for the dissection to actually take place. Between those two calls, epan_dissect_prime_dfilter() can be run 0, 1, or multiple times in order to prime the empty proto_tree with the "intersesting" fields from the dfilter_t. svn path=/trunk/; revision=4422
2001-12-08Attach a descriptive name field type and base to dissector tables; thatGuy Harris1-6/+42
specifies how the selector values used as keys in those tables are to be displayed, and the title to use when displaying the table. Use that information in the code to display the initial and current entries of various dissector tables. Have the dissector for BACnet APDUs register itself by name, and have the BACnet NPDU dissector call it iff the BAC_CONTROL_NET bit isn't set, rather than doing it with a dissector table. svn path=/trunk/; revision=4358
2001-12-06Handle the case of the initial, or current, dissector handle for aGuy Harris1-3/+9
particular port number being null. svn path=/trunk/; revision=4347
2001-12-03"ptype" is always set, even if only to PT_NONE; it will be set to PT_TCPGuy Harris1-21/+22
only there's TCP in the current frame and it will be set to PT_UDP only if there's UDP in the current frame. As such, there's no need to check "ipproto" before checking "ptype" - and we should check "ptype" as well as "ipproto" when deciding whether we'll put up a "Decode As" dialog with anything in it. (Not that there's anything other than IPv4 or IPv6 over which we currently dissect TCP or UDP....) svn path=/trunk/; revision=4318
2001-12-03To check whether the current frame contains TCP or UDP traffic, checkGuy Harris1-168/+25
whether the port type is PT_TCP or PT_UDP, don't check the IP protocol type at the network layer (except to check whether it's set at all, to decide whether it's IP/IPv6 - if it's not, the transport isn't TCP or UDP); that way, we don't have to keep track of which IP protocol numbers are being decoded as TCP or UDP. svn path=/trunk/; revision=4317
2001-12-03When the dissector tables are reset to the default settings, the list ofGuy Harris1-1/+10
IP protocol numbers to be decoded as TCP and as UDP should be reset as well. svn path=/trunk/; revision=4313
2001-12-03Get rid of the lists of conversation dissectors; instead, have aGuy Harris1-231/+168
dissector table contain both a hash table, to use to look up port numbers to find a dissector, and a list of all dissectors that *could* be assigned to ports in that hash table, to be used by user interface code. Make the "Decode As" dialog box code use that. Also make it *not* let you choose whether to set the dissector for both the UDP and TCP versions of a port; some protocols run only atop TCP, some run only atop UDP, and even those that can run atop both may have different dissector handles to use over TCP and UDP, so handling a single merged list would be a mess. (If the user is setting the dissector for a TCP port, only those protocols that Ethereal can handle over TCP should be listed; if the user is setting the dissector for a UDP port, only those protocols that Ethereal can handle over TCP should be listed; if the user is setting a dissector for both, only those protocols that Ethereal can handle over *both* TCP *and* UDP should be listed, *and* there needs to be a way to let the "Decode As" code get both the TCP handle *and* the UDP handle and use the right ones. If somebody really wants that, they need to implement all of the above if they want the code to be correct.) Fix the code that handles setting the dissection for the IP protocol number to correctly update the lists of protocols being dissected as TCP and as UDP; the code before this change wasn't updating the single such list to add new protocols. svn path=/trunk/; revision=4311
2001-12-03Make "dissector_add()", "dissector_delete()", and "dissector_change()"Guy Harris1-25/+20
take a dissector handle as an argument, rather than a pointer to a dissector function and a protocol ID. Associate dissector handles with dissector table entries. svn path=/trunk/; revision=4308
2001-11-21Remove the global packet_info called "pi". Dissectors now onlyGilbert Ramirez1-16/+16
access their own "pinfo". A packet_info is stored in epan_dissect_t, which is created for the dissection of a single packet. GUI functions which need to access the packet_info of the currently selected packet used to use "pi"; now they use cfile.edt->pi. cfile's "edt" member is the epan_dissect_t of the currently-selected packet. The functionality of blank_packetinfo() was moved into dissect_packet(), as that's the only place that called blank_packetinfo(), after a spurious call to blank_packetinfo() was removed from packet_list_select_cb(). svn path=/trunk/; revision=4246
2001-11-04Include protocols for TCP conversation dissectors in the list ofGuy Harris1-1/+2
protocols that can be used to decode stuff. svn path=/trunk/; revision=4152