diff options
author | Bret Lambert <blambert@cvs.openbsd.org> | 2014-04-14 12:56:22 +0000 |
---|---|---|
committer | Bret Lambert <blambert@cvs.openbsd.org> | 2014-04-14 12:56:22 +0000 |
commit | cbab090e47298e2dd99f095c98722875d30c0c23 (patch) | |
tree | f3dafe43fe9b343e3e1c521b834840261f5c10fe /usr.sbin/snmpctl/parser.h | |
parent | de35535fa13c0a84b78e2258d19537ad5738e370 (diff) |
Adapt snmpctl to use AgentX protocol to send traps
ok reyk@ benno@
Diffstat (limited to 'usr.sbin/snmpctl/parser.h')
-rw-r--r-- | usr.sbin/snmpctl/parser.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/usr.sbin/snmpctl/parser.h b/usr.sbin/snmpctl/parser.h index 3b41a4b6d99..d50a7ed96ca 100644 --- a/usr.sbin/snmpctl/parser.h +++ b/usr.sbin/snmpctl/parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.h,v 1.8 2013/10/07 11:40:09 reyk Exp $ */ +/* $OpenBSD: parser.h,v 1.9 2014/04/14 12:56:21 blambert Exp $ */ /* * Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -32,11 +32,28 @@ struct parse_val { }; TAILQ_HEAD(parse_vals, parse_val); +struct parse_varbind { + struct snmp_imsg sm; + union { + uint32_t u; + int32_t d; + uint64_t l; + struct in_addr in4; + struct in6_addr in6; + char *str; + } u; + + TAILQ_ENTRY(parse_varbind) vb_entry; +}; +TAILQ_HEAD(parse_varbinds, parse_varbind); + struct parse_result { enum actions action; struct imsgbuf *ibuf; char *host; + char *trapoid; struct parse_vals oids; + struct parse_varbinds varbinds; char *community; int version; }; |