summaryrefslogtreecommitdiff
path: root/epan/oids.h
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-08-19 23:00:47 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-08-19 23:00:47 +0000
commita5efe69a793d0d0a126e90c342827774b7670044 (patch)
tree9198a063a4f03927965f0774be87212d56aca616 /epan/oids.h
parent696bcf8b2dd764bc57581c928a87af0fbc0465f3 (diff)
downloadwireshark-a5efe69a793d0d0a126e90c342827774b7670044.tar.gz
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 svn path=/trunk/; revision=22556
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;