aboutsummaryrefslogtreecommitdiffstats
path: root/format-oid.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-03-11 01:48:08 +0000
committerGuy Harris <guy@alum.mit.edu>2002-03-11 01:48:08 +0000
commit7e8c5a1741502e5951962a2668311759b7c66abc (patch)
treed52fa50e4a65667f318cd510f68427aad0128967 /format-oid.h
parent9f8d089e2e4d16c41ae289d0992396558a5a7f83 (diff)
If we're linking with the UCD SNMP library, make "format_oid()" append a
display of the symbolic form of the OID. Remove code that used to do that outside of "format_oid()". Export "format_oid()" from "packet-snmp.c" and use it in "packet-cops.c". Remove support for CMU SNMP and older versions of UCD SNMP from "packet-cops.c", as it has been removed from the rest of Ethereal. svn path=/trunk/; revision=4924
Diffstat (limited to 'format-oid.h')
-rw-r--r--format-oid.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/format-oid.h b/format-oid.h
new file mode 100644
index 0000000000..de6093f150
--- /dev/null
+++ b/format-oid.h
@@ -0,0 +1,30 @@
+/* format-oid.h
+ * Declare routine for formatting OIDs
+ *
+ * $Id: format-oid.h,v 1.1 2002/03/11 01:48:08 guy Exp $
+ *
+ * Ethereal - Network traffic analyzer
+ * By Gerald Combs <gerald@ethereal.com>
+ * Copyright 1998 Didier Jorand
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef __FORMAT_OID_H__
+#define __FORMAT_OID_H__
+
+extern gchar *format_oid(subid_t *oid, guint oid_length);
+
+#endif