diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2013-10-01 12:41:50 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2013-10-01 12:41:50 +0000 |
commit | 60d45566d793f3e579e4422ae701c1e972dff807 (patch) | |
tree | ea16a1468fb6c0a8f38bead4e89fefc11599595c /usr.sbin/snmpd/snmpd.h | |
parent | db241499eac43fd10fac438864dca917aa63cc22 (diff) |
Add initial SNMP client utility to snmpctl(8).
For example, snmpctl snmp walk 127.0.0.1
commit it deraadt@
Diffstat (limited to 'usr.sbin/snmpd/snmpd.h')
-rw-r--r-- | usr.sbin/snmpd/snmpd.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpd.h b/usr.sbin/snmpd/snmpd.h index e06605387c8..ce5b42812bf 100644 --- a/usr.sbin/snmpd/snmpd.h +++ b/usr.sbin/snmpd/snmpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpd.h,v 1.44 2013/09/26 09:11:30 reyk Exp $ */ +/* $OpenBSD: snmpd.h,v 1.45 2013/10/01 12:41:47 reyk Exp $ */ /* * Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org> @@ -195,6 +195,7 @@ struct oid { void *o_data; RB_ENTRY(oid) o_element; + RB_ENTRY(oid) o_keyword; }; #define OID_ROOT 0x00 @@ -526,14 +527,17 @@ int smi_init(void); u_long smi_getticks(void); void smi_mibtree(struct oid *); struct oid *smi_find(struct oid *); +struct oid *smi_findkey(char *); struct oid *smi_next(struct oid *); struct oid *smi_foreach(struct oid *, u_int); void smi_oidlen(struct ber_oid *); void smi_scalar_oidlen(struct ber_oid *); -char *smi_oidstring(struct ber_oid *, char *, size_t); +char *smi_oid2string(struct ber_oid *, char *, size_t, size_t); +int smi_string2oid(const char *, struct ber_oid *); void smi_delete(struct oid *); void smi_insert(struct oid *); int smi_oid_cmp(struct oid *, struct oid *); +int smi_key_cmp(struct oid *, struct oid *); unsigned long smi_application(struct ber_element *); void smi_debug_elements(struct ber_element *); char *smi_print_element(struct ber_element *); |