aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-user_encap.c
AgeCommit message (Collapse)AuthorFilesLines
2012-07-08UATs could be put into "categories". The categories were defined onlyGuy Harris1-2/+2
implicitly by the #define name and string they were defined to; not all UATs neatly fit into any of the categories, so some of them were put into categories that weren't obviously correct for them, and one - the display filter macro UAT - wasn't put into any category at all (which caused crashes when editing them, as the GUI code that handled UAT changes from a dialog assumed the category field was non-null). The category was, in practice, used only to decide, in the aforementioned GUI code, whether the packet summary pane needed to be updated or not. It also offered no option of "don't update the packet summary pane *and* don't redissect anything", which is what would be appropriate for the display filter macro UAT. Replace the category with a set of fields indicating what the UAT affects; we currently offer "dissection", which applies to most UATs (any UAT in libwireshark presumably affects dissection at a minimum) and "the set of named fields that exist". Changing any UAT that affects dissection requires a redissection; changing any UAT that affects the set of named fields that exist requires a redissection *and* rebuilding the packet summary pane. Perhaps we also need "filtering", so that if you change a display filter macro, we re-filter, in case the display is currently filtered with a display filter that uses a macro that changed. svn path=/trunk/; revision=43603
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-10-21For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.Bill Meier1-1/+1
Also: remove trailing whitespace for a number of files. svn path=/trunk/; revision=39503
2011-06-20Remove some unneeded #includes;Bill Meier1-153/+158
Use consistent indentation; Reformat some long lines. svn path=/trunk/; revision=37724
2011-06-19 Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warnings;Bill Meier1-19/+16
Also: whitespace cleanup. svn path=/trunk/; revision=37718
2011-05-08There is no guarantee that, just because there's a UAT item for a givenGuy Harris1-5/+14
LINKTYPE_USERn encapsulation with a protocol name - even if the protocol name was valid at the time the entry was made, it might not be valid now (e.g., if you no longer have a plugin), *and* the protocol lookup done in the UI is case-insensitive but the lookup done later is case-sensitive (this needs to be cleaned up somehow). For now, just handle the case where encap->payload_proto is NULL. svn path=/trunk/; revision=37020
2011-03-31Use correct functions to fetch protocol name for a dissector registered Stig Bjørlykke1-9/+6
by register_dissector(). svn path=/trunk/; revision=36413
2011-03-29From Pascal Quantin:Stig Bjørlykke1-6/+15
Added guard against proto_name's not resolved as protocols. svn path=/trunk/; revision=36392
2011-03-28Added payload, header and trailer information to the DLT tree entry.Stig Bjørlykke1-1/+13
svn path=/trunk/; revision=36377
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-4/+4
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-10-29Make the third argument to a UAT copy callback a size_t (not that any ofGuy Harris1-1/+1
the callbacks we have use that argument - is it really needed?). svn path=/trunk/; revision=34694
2010-05-18Add proper item for "User encapsulation not handled" to be able toStig Bjørlykke1-3/+3
second-click the entry to edit preferences. svn path=/trunk/; revision=32869
2010-03-04From LEGO via bug 3459:Stig Bjørlykke1-0/+1
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. svn path=/trunk/; revision=32112
2009-08-26(FWIW) One step towards including stdio.h & stdlib.h only when req'd.Bill Meier1-0/+1
svn path=/trunk/; revision=29568
2009-08-06Fix compilation warnings in a few dissectors and try moving them to theGerald Combs1-1/+1
"clean" list. svn path=/trunk/; revision=29313
2009-03-13From Jakub Zawadzki (bug 3331):Stig Bjørlykke1-3/+3
g_free() is NULL safe, so we don't need check against it. svn path=/trunk/; revision=27718
2009-03-08Don't use ep_strndup() to copy the uat protocol name, because the valueStig Bjørlykke1-3/+21
can be free'ed before we use it. Allocate the string like we do for other strings and copy/free the memory in the appropriate copy_cb/free_cb functions. This is only used in the DLT_USER table yet. svn path=/trunk/; revision=27663
2009-02-16Add an additional "title" attribute for UAT fields; that's what'sGuy Harris1-6/+6
displayed to the user. svn path=/trunk/; revision=27462
2008-12-17Fix typos and spelling (mostly in text strings) Bill Meier1-1/+1
svn path=/trunk/; revision=27028
2008-11-15Use string format argument.Stig Bjørlykke1-2/+2
svn path=/trunk/; revision=26784
2008-09-26Minor cleanup related to proto_register & proto_reg_handoffBill Meier1-6/+5
svn path=/trunk/; revision=26280
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-07-25Fix typos, clean up a message.Guy Harris1-1/+1
svn path=/trunk/; revision=25835
2008-06-26Fix some warnings reported by gcc -Wshadow ...Bill Meier1-4/+4
svn path=/trunk/; revision=25607
2008-03-06Added an option to uat_new() to set if configuration shall be saved in theStig Bjørlykke1-0/+1
selected profile. Don't save SMI Paths and SMI Modules in the profiles because reloading currently doesn't work (bug 2309). svn path=/trunk/; revision=24580
2007-05-25- epan/uat.h: change the UAT_PROTO_DEF macro to handle both the name of the ↵Luis Ontanon1-3/+6
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-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-1/+1
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526
2007-03-27as Gisle Vanem noted that MingW doesn't "like" the #pragmas:Ulf Lamping1-1/+1
change #ifdef _WIN32 -> #ifdef _MSC_VER around pragma warnings svn path=/trunk/; revision=21228
2007-03-27fix the remaining MSVC warnings by setting individual ↵Ulf Lamping1-0/+5
#pragma(warning:disable) settings - this is very certainly not the way to go, but the way to prevent additional warnings rushing in ... svn path=/trunk/; revision=21221
2007-02-12Add a description of UAT fields, and have it as a tooltip in the New/Edit ↵Luis Ontanon1-6/+6
Dialog. svn path=/trunk/; revision=20797
2007-02-09* Add a Submenu (/Views/User Tables) where UATs can be accessed.Luis Ontanon1-16/+16
* Remove macros_dlg, the DFMacros UAT goes in the menu with all the rest * in packet-user_encap.c WTAP_ENCAP=XXX has become useless information for the user leave just the DLT# svn path=/trunk/; revision=20753
2007-02-08Have the windows buildot compiling again.Luis Ontanon1-2/+4
svn path=/trunk/; revision=20742
2007-02-07UAT: filed definitions for proto (a dissector hanlde obtained by name)Luis Ontanon1-143/+119
UATify user-DLTs svn path=/trunk/; revision=20740
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2005-09-21Squelch a compiler warning.Guy Harris1-1/+1
svn path=/trunk/; revision=15920
2005-08-05More char -> const char warning fixesJörg Mayer1-3/+3
svn path=/trunk/; revision=15222
2005-07-25Make the DLT an option, reduce the number of instances and rename them.Luis Ontanon1-75/+82
svn path=/trunk/; revision=15064
2005-07-24Constify to remove a bunch of warnings. Add some casts to squelchGuy Harris1-3/+3
(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-06-06the trailer's offset and len were not ok.Luis Ontanon1-7/+4
svn path=/trunk/; revision=14566
2005-06-04Give the user the ability to decide how to decode USER DLTsLuis Ontanon1-0/+210
svn path=/trunk/; revision=14551