11 #include <net-snmp/net-snmp-config.h>
12 #include <net-snmp/definitions.h>
13 #include <net-snmp/types.h>
14 #include <net-snmp/utilities.h>
15 #include <net-snmp/config_api.h>
16 #include <net-snmp/agent/net-snmp-agent-includes.h>
17 #undef INET6 /* SRSLY? */
18 #endif /* HAVE_NET_SNMP */
23 SNMPAgent(const std::string& name, const std::string& masterSocket);
29 #endif /* HAVE_NET_SNMP */
35 d_thread = std::thread(&SNMPAgent::worker, this);
36 #endif /* HAVE_NET_SNMP */
40 static int setCounter64Value(netsnmp_request_info* request,
42 #endif /* HAVE_NET_SNMP */
45 /* OID for snmpTrapOID.0 */
46 static const oid snmpTrapOID[];
47 static const size_t snmpTrapOIDLen;
49 static bool sendTrap(int fd,
50 netsnmp_variable_list* varList);
54 int d_trapPipe[2] = { -1, -1};
55 #endif /* HAVE_NET_SNMP */
62 #endif /* SNMP_AGENT_HH */