aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-08Constify the second argument to uat_load(), to squelch some warnings.Guy Harris1-1/+1
svn path=/trunk/; revision=47560
2013-01-04replace "unsigned" datatype with "guint". Some mpeg files needed "unsigned ↵Michael Mann1-7/+7
int" instead. bugs 7825-7827 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7825) svn path=/trunk/; revision=46928
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-3/+1
svn path=/trunk/; revision=45016
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-09Added a button to refresh a UAT from the system defaults (if existing).Stig Bjørlykke1-6/+7
Added a button to clear the list. Added tooltip to some buttons. Removed unused clist code. svn path=/trunk/; revision=39319
2011-09-21Whitespace cleanup:Bill Meier1-418/+418
Use consistent indentation; Convert "4 space tabs" to spaces; Remove trailing whitespace. svn path=/trunk/; revision=39082
2011-09-21Fix ex "modeline" so it works;Bill Meier1-1/+1
See https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5748 svn path=/trunk/; revision=39081
2011-09-20From Dirk via bug 6361:Stig Bjørlykke1-2/+4
Add a File/Directory Dialog as a field type for UAT preferences. svn path=/trunk/; revision=39058
2011-06-28Replace all strerror() with g_strerror().Stig Bjørlykke1-3/+3
Remove our local strerror implementation. Mark strerror as locale unsafe API. This fixes bug 5715. svn path=/trunk/; revision=37812
2010-08-04Ensure we don't index into a NULL pointer.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=33710
2010-06-28Introduce an Object Identifier field macro, together with an appropriate fieldGraeme Lunt1-0/+25
check routine. Also, a field type which is an enumerated string value. svn path=/trunk/; revision=33343
2010-03-04From LEGO via bug 3459:Stig Bjørlykke1-0/+2
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-04-20Constify some items to squelch some compiler warnings in the WindowsGuy Harris1-7/+7
buildbot; based on a patch from Chris Maynard, with some additional changes to squelch GCC warnings on UN*X. svn path=/trunk/; revision=28093
2009-04-08More size_t fixes.Gerald Combs1-6/+6
svn path=/trunk/; revision=28000
2009-03-08Handle a empty string as "0" when checking numeric uat values, becauseStig Bjørlykke1-12/+17
strtol() will set errno on some platforms and not on other platforms. With this change we don't need to set a value in DLT_USER header size and trailer size. Also remove an unused strdup. svn path=/trunk/; revision=27664
2009-02-16Add an additional "title" attribute for UAT fields; that's what'sGuy Harris1-1/+1
displayed to the user. svn path=/trunk/; revision=27462
2009-02-11The uat files can be saved before any other preferences, so try creatingStig Bjørlykke1-0/+11
the personal configuration directory if saving the uat file fails. svn path=/trunk/; revision=27424
2008-12-30Add some comments to uat_new().Martin Mathieson1-1/+4
svn path=/trunk/; revision=27134
2008-09-03g_ascii_strdown() and g_ascii_strup(), unlike g_strdown() and g_strup(),Guy Harris1-2/+5
do *not* modify the string handed to them - they g_mallocate a new string and return it. Create routines that *do* ASCII-only case mapping in place, and use them instead. Clean up indentation. svn path=/trunk/; revision=26131
2008-08-07remove a degug printfLuis Ontanon1-1/+1
svn path=/trunk/; revision=25950
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-05-23Fix some of the Errors/warnings detected by checkapi.Anders Broman1-1/+1
svn path=/trunk/; revision=25369
2008-05-22Move the file utility functions from wiretap to libwsutil so thatJeff Morriss1-2/+2
libwireshark (and the plugins using those functions) do not depend on wiretap on Windows. While doing that, rename the eth_* functions to ws_*. svn path=/trunk/; revision=25354
2008-03-06Added an option to uat_new() to set if configuration shall be saved in theStig Bjørlykke1-3/+8
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
2008-02-26get_datafile_path() and get_persconffile_path() return malloc'd memory,Jeff Morriss1-0/+6
free it when we're done with the file name. svn path=/trunk/; revision=24477
2008-02-15Extend the UAT and preferences code so that you can use the "-o" flagGerald Combs1-0/+25
to override UAT entries from the command line, e.g. -o "uat:user_dlts:\"User 0 (DLT=147)\",\"http\",\"0\",\"\",\"0\",\"\"" Fix up white space. svn path=/trunk/; revision=24338
2008-01-30Add Luis' uat_get_table_by_name() to fetch SMI uat tables.Stig Bjørlykke1-0/+13
svn path=/trunk/; revision=24229
2008-01-19Free allocated data in prefs_reset, removed need for uat_reload_all and Stig Bjørlykke1-3/+1
made some cleanups in profile_dlg. svn path=/trunk/; revision=24136
2008-01-14This patch adds support for configuration profiles, which can be used toStig Bjørlykke1-1/+13
configure and use more than one set of preferences and configuration files. This can be found in the "Configuration Profiles..." menu item from the Edit menu, or by pressing Shift-Ctrl-A. It's also possible to start wireshark and tshark with a named profile by using the "-C ProfileName" option. A new status pane in the main window will show the current profile. The configuration files currently stored in the Profiles are: - Preferences - Capture Filters - Display Filters - Coloring Rules - Disabled Protocols - User Accessible Tables The recent data are by design not added to the profile. Planned future enhancements: - make a more convenient function to switch between profiles - add a "clone profile" button to copy an existing profile - make the profiles list active and accept return as OK - save users "Decode as" in the profile - make new, clone and deletion of profiles more secure - make some of the recent values available in the profile This patch also fixes: - setting default status pane sizes - a bug setting status pane for packets when not having main lower pane. svn path=/trunk/; revision=24089
2008-01-06Allocate enough space to make proper NULL terminated string in uat_unesc ↵Jaap Keuter1-6/+7
(bug 2169) and uat_unbinstring, svn path=/trunk/; revision=24017
2007-12-16From Jim Young:Stig Bjørlykke1-1/+1
Fixed reading uat personal files before global files. This fixes bug 2070. svn path=/trunk/; revision=23883
2007-10-16Change more fopen() to eth_fopen() to finish fixing bug 1827:Jeff Morriss1-84/+85
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1827 Update README.developer to tell developers not to use fopen() and friends directly. svn path=/trunk/; revision=23206
2007-08-28Commit canges to uat_load.l, and initialize uat_t->loaded (not every system ↵Luis Ontanon1-0/+1
zeroes-out on malloc). svn path=/trunk/; revision=22705
2007-08-28SNMP:Luis Ontanon1-1/+2
- As noted by Thomas Anders values are not added to the tree anymore. Move the calling of subdissectors to the end of the function, so that the value is added to the tree. - add port 8161 to be decoded as SNMP (hey, it's on IANA's services file!) UAT: - do not have the uat reloaded. OIDS: - do not complain if renaming an OID to an identical name svn path=/trunk/; revision=22704
2007-07-14Fix yet more casts of ctype.h macro arguments - and fix some cases whereGuy Harris1-2/+2
we were passing an uncasted "char" to those macros. svn path=/trunk/; revision=22306
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-10/+10
--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-04-13Fix some Solaris buildbot warningsStephen Fisher1-2/+2
svn path=/trunk/; revision=21423
2007-04-03fix an 'unused parameter' warningRichard van der Hoff1-1/+1
svn path=/trunk/; revision=21325
2007-04-03Implement a proposal from Elefterios Gabriel for SCCP:Luis Ontanon1-0/+22
Add a table of DPCs and SSNs that allow to override the protocol that would be choosen so that the same SSN can use two different protocols in two different DPCs. I did not believe it someone could have done it, then I saw the captures... svn path=/trunk/; revision=21321
2007-04-01Fix management of lstrings in uat code so that arbitrary chars (even '\0's) ↵Luis Ontanon1-0/+152
can be used inside. Fixes bug 1502 svn path=/trunk/; revision=21294
2007-02-11Have Aply, Cancel and OK buttons instead of the save and ok button.Luis Ontanon1-0/+15
Have these buttons reloading the capture file if needed. Some rearrangement of the window (the editor is still missing "ornaments" and tooltips) svn path=/trunk/; revision=20788
2007-02-08Have the windows buildot compiling again.Luis Ontanon1-0/+11
svn path=/trunk/; revision=20742
2007-02-07UAT: filed definitions for proto (a dissector hanlde obtained by name)Luis Ontanon1-7/+39
UATify user-DLTs svn path=/trunk/; revision=20740
2007-02-07* Add a category param to the uat.Luis Ontanon1-0/+2
* UATify SNMP Users svn path=/trunk/; revision=20736
2007-02-07Add ENUM and HEXBYTES modesLuis Ontanon1-21/+12
svn path=/trunk/; revision=20733
2007-02-05* Add a help facility for UATsLuis Ontanon1-0/+2
* export help_topic_html() svn path=/trunk/; revision=20717
2007-02-04Move (Up/Down) & Save buttonsLuis Ontanon1-0/+17
svn path=/trunk/; revision=20708
2007-02-04the quoted_string regexp in uat_load() fails badly on "...\\", workarround ↵Luis Ontanon1-5/+5
in uat_save() using \x5c and \x22 (hex for \ and ") svn path=/trunk/; revision=20706
2007-02-03second iteration:Luis Ontanon1-109/+122
* fields of an uat table now are passed using an array of uat_filed_t * field callbacks take two more userdata arguments * add some macros to define uat field callbacks. * uats can be registered as preferences for a specific protocol - the preference widget is a button that opens the uat's window * dfilter-macro => reflect changes to API svn path=/trunk/; revision=20695