aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oids.h
diff options
context:
space:
mode:
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-19 23:00:47 +0000
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>2007-08-19 23:00:47 +0000
commitf7a0db5e41169634c8fc609707065d0a95c16cc3 (patch)
tree9198a063a4f03927965f0774be87212d56aca616 /epan/oids.h
parenta0ad8882ff6754461f58beab4aaff1fd9f52404c (diff)
Filtering on snmp variables starts to work so I put it there in case anyone wants to start playing with it. I'll leave the generated dissector in place and the rest off the Makefiles so that others are not bothered by this.
TODO: - Global - add libsmi to autoconf (I modified CFLAGS and LDADDs in the makefile.ams appending my own values, that's good only for me) - have other users of oid_resolv.h get to use the new functions in oids.h - add a menu item or preference setting for the smi_modules UAT ( the smi_modules file has one dquoted string per line with the name of each module to be loaded) - SNMP - put complete information in the labels of the VarBind Items - add oids to COL_INFO - negative testing (Well, testing in general) - OIDS - implement "ALL" modules - some functions are not yet tested or implemented I'll put a TO-DO list on the wiki for people (incl. me) to add more items git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22556 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/oids.h')
-rw-r--r--epan/oids.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/epan/oids.h b/epan/oids.h
index e40eb378ac..9ebe74dfa9 100644
--- a/epan/oids.h
+++ b/epan/oids.h
@@ -1,4 +1,4 @@
-/* oid.h
+/* oids.h
* Definitions for OBJECT IDENTIFIER operations
*
* $Id$
@@ -27,6 +27,8 @@
#ifndef __OIDS_H__
#define __OIDS_H__
+#define BER_TAG_ANY -1
+
struct _oid_bit_t {
guint offset;
int hfid;
@@ -38,11 +40,20 @@ typedef struct _oid_bits_info_t {
struct _oid_bit_t* data;
} oid_bits_info_t;
+typedef struct _oid_value_type_t {
+ enum ftenum ft_type;
+ int display;
+ gint8 ber_class;
+ gint32 ber_tag;
+ int min_len;
+ int max_len;
+} oid_value_type_t;
+
typedef struct _oid_info_t {
guint32 subid;
char* name;
void* children; /* an emem_tree_t* */
- int value_type;
+ const oid_value_type_t* value_type;
int value_hfid;
oid_bits_info_t* bits;
struct _oid_info_t* parent;