Commit Graph

91 Commits

Author SHA1 Message Date
Jeff Morriss f5e838b602 Remove comma at the end of several enumerator lists.
svn path=/trunk/; revision=39700
2011-11-01 01:23:10 +00:00
Stig Bjørlykke c3cb0e6dd9 From Dirk via bug 6361:
Add a File/Directory Dialog as a field type for UAT preferences.

svn path=/trunk/; revision=39058
2011-09-20 10:14:58 +00:00
Stig Bjørlykke 0c1a3a8e09 Set maximum value for UAT range in fld_data, not cbdata.chk/set/tostr.
Both _set_cb and chk_range uses fld_data as max in range_convert_str().

This bug was found when the range max check from bug 4768 was fixed
in revision 34698.

svn path=/trunk/; revision=34722
2010-10-30 17:51:20 +00:00
Guy Harris 17d4d51b7d Make the third argument to a UAT copy callback a size_t (not that any of
the callbacks we have use that argument - is it really needed?).

svn path=/trunk/; revision=34694
2010-10-29 21:11:33 +00:00
Graeme Lunt 812274918a Introduce an Object Identifier field macro, together with an appropriate field
check routine.
Also, a field type which is an enumerated string value.


svn path=/trunk/; revision=33343
2010-06-28 09:30:15 +00:00
Stig Bjørlykke 2f8830b4d0 From LEGO via bug 3459:
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
2010-03-04 12:50:18 +00:00
Bill Meier 94dda5f083 Update the uat_new documentation to match the actual function.
svn path=/trunk/; revision=31898
2010-02-16 20:35:58 +00:00
Jeff Morriss 9f29cca534 s/g_strdown/g_ascii_strdown
svn path=/trunk/; revision=29882
2009-09-13 19:23:07 +00:00
Guy Harris 7979be1dfe More constification, fewer warnings.
svn path=/trunk/; revision=28094
2009-04-20 18:45:02 +00:00
Guy Harris 4ab2ca8891 Constify some items to squelch some compiler warnings in the Windows
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-20 18:34:06 +00:00
Guy Harris 14c88fa8a4 Clean up some P64 issues; we assume that no strings in UATs are bigger
than 2^31-1 (if they are, truncating the length to 32 bits is probably
the least of our problems).

svn path=/trunk/; revision=27735
2009-03-16 06:11:30 +00:00
Stig Bjørlykke 62f60df6b4 From Jakub Zawadzki (bug 3331):
g_free() is NULL safe, so we don't need check against it.

svn path=/trunk/; revision=27718
2009-03-13 22:06:48 +00:00
Stig Bjørlykke b4c2f2044a Don't use ep_strndup() to copy the uat protocol name, because the value
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-03-08 22:31:28 +00:00
Guy Harris 5742ede54c Add an additional "title" attribute for UAT fields; that's what's
displayed to the user.

svn path=/trunk/; revision=27462
2009-02-16 04:10:06 +00:00
Luis Ontanon 42c3239a1a luis.ontanon@gmail.com => luis@ontanon.org
svn path=/trunk/; revision=25937
2008-08-05 21:03:46 +00:00
Jeff Morriss c1736aec4e (Temporary?) fix to get the Windows buildbot going again: remove constness from a couple of variables.
svn path=/trunk/; revision=25935
2008-08-05 20:38:22 +00:00
Luis Ontanon 10aa072565 Have some UAT helper functions copying the passed buffer before
freeing the contained buffer ( The client might have passed the
contained buffer to avoid read-after-free )


svn path=/trunk/; revision=25928
2008-08-05 11:16:24 +00:00
Stig Bjørlykke fdc980e79d Added an option to uat_new() to set if configuration shall be saved in the
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-03-06 22:13:24 +00:00
Gerald Combs 6537c76fb6 Extend the UAT and preferences code so that you can use the "-o" flag
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-02-15 22:36:24 +00:00
Stig Bjørlykke 1efb7e3627 Add Luis' uat_get_table_by_name() to fetch SMI uat tables.
svn path=/trunk/; revision=24229
2008-01-30 22:50:55 +00:00
Stig Bjørlykke 1621224a86 Free allocated data in prefs_reset, removed need for uat_reload_all and
made some cleanups in profile_dlg.

svn path=/trunk/; revision=24136
2008-01-19 01:18:35 +00:00
Stig Bjørlykke a2d1e9005d This patch adds support for configuration profiles, which can be used to
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-14 16:40:23 +00:00
Luis Ontanon dfbac00752 SNMP:
- 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-08-28 15:18:32 +00:00
Luis Ontanon c22f70ec1b - epan/uat.h: change the UAT_PROTO_DEF macro to handle both the name of the 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-25 16:47:22 +00:00
Guy Harris 1bc049906a Add some GCC warnings to the standard set, and add some others to the
--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-23 10:59:26 +00:00
Stephen Fisher fa57c8fc44 Fix some Solaris buildbot warnings
svn path=/trunk/; revision=21423
2007-04-13 23:32:21 +00:00
Luis Ontanon 9709011a9b Implement a proposal from Elefterios Gabriel for SCCP:
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-03 19:08:00 +00:00
Luis Ontanon 53d3904a28 Have the prototypes of uat_esc and uat_unesc available to packet-snmp.c
svn path=/trunk/; revision=21296
2007-04-01 16:02:41 +00:00
Luis Ontanon b2e5988e63 Fix management of lstrings in uat code so that arbitrary chars (even '\0's) can be used inside.
Fixes bug 1502


svn path=/trunk/; revision=21294
2007-04-01 14:55:25 +00:00
Guy Harris 16b7912456 Initialize the description in UAT_FLD_PROTO().
svn path=/trunk/; revision=20849
2007-02-19 01:22:45 +00:00
Luis Ontanon b26c1c4ca2 Add a description of UAT fields, and have it as a tooltip in the New/Edit Dialog.
svn path=/trunk/; revision=20797
2007-02-12 19:57:41 +00:00
Luis Ontanon 4e55e354bb Have the windows buildot compiling again.
svn path=/trunk/; revision=20742
2007-02-08 10:15:04 +00:00
Luis Ontanon 9422dfd084 UAT: filed definitions for proto (a dissector hanlde obtained by name)
UATify user-DLTs


svn path=/trunk/; revision=20740
2007-02-07 20:45:14 +00:00
Luis Ontanon 8144684c11 MSVC does not like mixed declarations and code
* I'm checking in some still unuused work in progress

svn path=/trunk/; revision=20739
2007-02-07 18:56:07 +00:00
Luis Ontanon 2006fac500 * Add a category param to the uat.
* UATify SNMP Users


svn path=/trunk/; revision=20736
2007-02-07 14:54:35 +00:00
Luis Ontanon bc2ca61083 Add ENUM and HEXBYTES modes
svn path=/trunk/; revision=20733
2007-02-07 03:39:40 +00:00
Luis Ontanon 2b22bcb1a3 * Add a help facility for UATs
* export help_topic_html()


svn path=/trunk/; revision=20717
2007-02-05 05:06:21 +00:00
Luis Ontanon d70a58f881 second iteration:
* 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
2007-02-03 14:25:02 +00:00
Luis Ontanon 6fe845c1b4 svn:ignore uat_load.c
$Id$ for uat.h uat-int.h


svn path=/trunk/; revision=20597
2007-01-29 05:02:14 +00:00
Luis Ontanon 5af746016a now it is operational.
svn path=/trunk/; revision=20595
2007-01-29 04:47:58 +00:00
Luis Ontanon 88e699977c Although yet untested (but it compiles and is still unused) add UAT to the repo.
UAT is an API to handle User Accessible Tables,
an UAT is basically an array of arbitrary structs that has a file representation
as a mean for mantaining things like:
- the snmp_users_table
- dfilter macros
- ipsec/ssl key bindings
- k12 configuration,
- and many other table-like user modifiable preferences

comming soon gtk's uat_window() and prefs_add_uat()

uat.h is fairly doc[uo]m[m]?ented, a README with a simple example of how is to be used will be available as I write them


svn path=/trunk/; revision=20586
2007-01-28 10:31:32 +00:00