aboutsummaryrefslogtreecommitdiffstats
path: root/epan/prefs.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-18Fix some dead code and zero division issues found by Clang scan-build.Gerald Combs1-5/+1
In convert_string_case() use g_utf8_strup() instead of converting each character by hand. Hopefully this won't cause any unexpected changes in behavior. svn path=/trunk/; revision=36006
2011-01-27Use g_error() (with a hopefully-useful error message) instead of g_assert() ↵Jeff Morriss1-5/+8
to report problems with preference registrations. svn path=/trunk/; revision=35683
2010-12-22Allow for NULL preference descriptions.Jaap Keuter1-1/+2
svn path=/trunk/; revision=35242
2010-12-03Change default for "Welcome screen and title bar shows version" to on perStephen Fisher1-1/+1
discussion in this thread on the wireshark-dev mailing list: http://www.wireshark.org/lists/wireshark-dev/201011/msg00151.html svn path=/trunk/; revision=35113
2010-11-29Add "Length" as a new default column on a trial basis between the protocolStephen Fisher1-2/+3
and info columns per discussion on -dev list: http://www.wireshark.org/lists/wireshark-dev/201011/msg00151.html svn path=/trunk/; revision=35068
2010-11-10Resolve bug #2254: Migrate the 802.1q VLAN dissector into the Ethernet II.Stephen Fisher1-1/+5
svn path=/trunk/; revision=34838
2010-11-04Support empty column titles.Stig Bjørlykke1-7/+0
svn path=/trunk/; revision=34777
2010-10-29Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4768 :Jeff Morriss1-9/+16
Return an error if the user specifies a value in a range in excess of the range-specified maximum. Except when reading in preferences files which might have ranges that exceed the maximum (because we didn't use to check): in that case silently lower the out-of-range values. svn path=/trunk/; revision=34698
2010-10-27If we get a syntax error reading the preferences file, tell which preference ↵Jeff Morriss1-3/+3
we were reading when we got the error. svn path=/trunk/; revision=34655
2010-09-24Added an extra validity check for cust_format_info.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=34235
2010-09-23Store "Show Resolved" setting for custom columns.Stig Bjørlykke1-3/+9
svn path=/trunk/; revision=34220
2010-09-22When using a custom column, make it possible to select which occurrence to ↵Sake Blok1-3/+15
show if the field has multiple occurrences. svn path=/trunk/; revision=34186
2010-08-31A GString has it's own length.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=34034
2010-08-31Support space in list of hidden columns.Stig Bjørlykke1-0/+1
This fixes bug 5163. svn path=/trunk/; revision=34033
2010-08-21Add some code to prefs_cleanup() to free (most of the) memory associated ↵Jeff Morriss1-46/+98
with the preferences. This only happens during shutdown so it's not fixing a memory leak, but it makes me more comfortable to know where the preferences memory is freed. svn path=/trunk/; revision=33874
2010-08-16Modernize the SONMP ("SynOptics Network Management Protocol") dissector by ↵Stephen Fisher1-0/+6
renaming it to NDP ("Nortel Discovery Protocol") and do some basic cleanup. svn path=/trunk/; revision=33815
2010-08-07From Cal Turney:Anders Broman1-2/+2
Optionally display Wireshark version in the main window's title bar. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5040 svn path=/trunk/; revision=33729
2010-07-28Backing out r33631 for now - it has a number of issues.Guy Harris1-2/+1
svn path=/trunk/; revision=33646
2010-07-26From Cal Turney:Anders Broman1-1/+2
Optionally display Wireshark version in the main window's title bar. (Modified to include SVN version). https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5040 svn path=/trunk/; revision=33631
2010-07-05Revert COL_DSCP_VALUE back to value set in packet-ip.c.Stig Bjørlykke1-1/+0
Right justify COL_DSCP_VALUE (and COL_DCE_CALL as in the old packet list). svn path=/trunk/; revision=33430
2010-06-25Introduce "Show Resolved" as an option in custom columns. This will determineStig Bjørlykke1-0/+3
if we show the value or the string representing the value. This setting is not stored in the preferences file yet, and the option is not available in the columns preferences window. svn path=/trunk/; revision=33317
2010-06-22Check for custom column before using custom_field.Stig Bjørlykke1-1/+1
Store hidden columns correctly. svn path=/trunk/; revision=33288
2010-06-22Always make new columns visible.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=33285
2010-06-20Fix for bug 4888:Jaap Keuter1-1/+1
Convert DSCP column to the proper custom column filter code. svn path=/trunk/; revision=33269
2010-06-20Added "Hide Column" functionality.Stig Bjørlykke1-5/+55
svn path=/trunk/; revision=33266
2010-05-26Remember the default value of each protocol preference.Jeff Morriss1-75/+100
If, when we're writing the preferences file, the current value of the preference is the same as the default, write out the preference (since the preference file is also the documentation for the preferences) but comment it out (so that if, for example, you go back to an older version of Wireshark you won't get warnings about non-existant preferences that you didn't change--and thus probably don't care too much about). It might be interesting to, in the future, add a UI to restore the default values. svn path=/trunk/; revision=32967
2010-05-26Reindent a bitJeff Morriss1-20/+26
svn path=/trunk/; revision=32960
2010-05-25find_val_for_string() is only used in prefs.c so remove the prototypeJeff Morriss1-4/+4
and make it static. When reading enum preferences, use the current value of the preference as the default value of the preference instead of a hard-coded 1. This way if we couldn't find the appropriate value we'll don't end up changing the preference to something that may or may not make sense. svn path=/trunk/; revision=32950
2010-05-25From H.sivank: GtkOSXApplication support.Guy Harris1-1/+1
Call the various flavors of OS X integration just "OS X integration", not anything with "IGE" in it - it appears that, in some places, "ige-mac-integration" refers only to the older Carbon-based functions, although the library still appears to be called -ligemacintegration. Update the URLs for the information about the OS X integration libraries. Clean up help message for --with-pcap-remote. Clean up white space a bit. Speaking of white space, it's "Mac OS X", not "MacOS X". svn path=/trunk/; revision=32941
2010-05-15Support monitor mode in the capture preferences.Guy Harris1-24/+63
Use prefs_is_capture_device_hidden() to find out whether a device should be hidden - don't scan the list of hidden devices ourselves. svn path=/trunk/; revision=32820
2010-04-19Use correct name for gprs-ns.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=32514
2010-04-19Revision 32295 renamed "nsip" to "gprs_ns".Stig Bjørlykke1-1/+3
svn path=/trunk/; revision=32513
2010-03-03Disable OID resolution and loading SMI modules by default.Balint Reczey1-0/+30
Add an option to enable OID resolution. Add an option to suppress errors reported by libsmi. svn path=/trunk/; revision=32096
2010-01-28Fix various gcc -Wshadow warnings.Bill Meier1-3/+3
svn path=/trunk/; revision=31720
2010-01-26Cleanup the escape/unescape underscore in Packet List column headers.Stig Bjørlykke1-4/+4
We only have to do this when actually set or get the title from the widget. svn path=/trunk/; revision=31689
2010-01-26Move underscore escaping/unscaping function to strutil.c;Gerasimos Dimitriadis1-0/+1
Update decoding of IS-801 Request GPS Acquisition Assistance svn path=/trunk/; revision=31685
2010-01-25Handle escape/unescape underscore when read/write the preferencesStig Bjørlykke1-5/+5
column.format entries. Also fix a small memory leakage. svn path=/trunk/; revision=31670
2010-01-25Ensure we don't write outside the pref_str in put_string_list().Stig Bjørlykke1-1/+1
This bug was introduced in revision 31487, when putting each column.format entry on separate lines. svn path=/trunk/; revision=31653
2010-01-11From Jim Young:Anders Broman1-1/+3
Patch to write "column.format:" preference values pairs to separate lines. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4380 svn path=/trunk/; revision=31487
2009-12-17Introduce "Ignore Packet" in the packet list.Stig Bjørlykke1-0/+35
This will remove the package from the dissection functions without removing it from the capture file. svn path=/trunk/; revision=31287
2009-09-25Make the filter toolbar style a preference.Anders Broman1-1/+13
svn path=/trunk/; revision=30136
2009-09-08Custom columnfication:Kovarththanan Rajaratnam1-1/+2
* Deprecate COL_DCE_CTX ("Context ID). Use dcerpc.cn_ctx_id svn path=/trunk/; revision=29797
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-1/+2
We fill out the COL_DSTIDX column by using 'pinfo->dst_idx'. This member is only set by the MDS Header dissector based on 'mdshdr.dstidx'. So remove COL_DSTIDX and migrate to 'mdshdr.dstidx' custom column. svn path=/trunk/; revision=29795
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-1/+2
We fill out the COL_SRCIDX column by using 'pinfo->src_idx'. This member is only set by the MDS Header dissector based on 'mdshdr.srcidx'. So remove COL_SRCIDX and migrate to 'mdshdr.srcidx' custom column. svn path=/trunk/; revision=29794
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-1/+2
We fill out the COL_RXID column by using 'pinfo->rxid'. This member is only set by the Fibre Channel dissector based on 'fc.rx_id'. So remove COL_RXID and migrate to 'fc.rx_id' custom column. svn path=/trunk/; revision=29793
2009-09-08Custom column deprecation:Kovarththanan Rajaratnam1-1/+2
We fill out the COL_OXID column by using 'pinfo->oxid'. This member is only set by the Fibre Channel dissector based on 'fc.ox_id'. So remove COL_OXID and migrate to 'fc.ox_id' custom column. svn path=/trunk/; revision=29792
2009-09-05COL_BSSGP_TLLI is deprecatedKovarththanan Rajaratnam1-1/+1
svn path=/trunk/; revision=29721
2009-09-05Ignore preferences for deleted protocols "etheric" and "isup_thin".Stig Bjørlykke1-0/+4
svn path=/trunk/; revision=29709
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-25 Custom columnfication:Anders Broman1-0/+1
* Deprecate COL_BSSGP_TLLI (GPRS BSSGP IE TLLI). Use bssgp.tlli svn path=/trunk/; revision=29546