]> git.ipfire.org Git - thirdparty/pdns.git/blame - pdns/dnsdist-snmp.hh
Merge pull request #7945 from pieterlexis/syncres-CNAME-cache-cleanup
[thirdparty/pdns.git] / pdns / dnsdist-snmp.hh
CommitLineData
9f4eb5cc
RG
1#ifndef DNSDIST_SNMP_HH
2#define DNSDIST_SNMP_HH
3
4#pragma once
5
6#include "snmp-agent.hh"
7
8class DNSDistSNMPAgent;
9
10#include "dnsdist.hh"
11
12class DNSDistSNMPAgent: public SNMPAgent
13{
14public:
15 DNSDistSNMPAgent(const std::string& name, const std::string& masterSocket);
f3b1a1ef 16 bool sendBackendStatusChangeTrap(const std::shared_ptr<DownstreamState>&);
9f4eb5cc
RG
17 bool sendCustomTrap(const std::string& reason);
18 bool sendDNSTrap(const DNSQuestion&, const std::string& reason="");
19};
20
21#endif /* DNSDIST_SNMP_HH */