snmpTCPDomain.h 848 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _SNMPTCPDOMAIN_H
  2. #define _SNMPTCPDOMAIN_H
  3. #ifdef HAVE_NETINET_IN_H
  4. #include <netinet/in.h>
  5. #endif
  6. config_require(IPv4Base);
  7. config_require(SocketBase);
  8. config_require(TCPBase);
  9. #ifdef NETSNMP_TRANSPORT_TCP_DOMAIN
  10. #include <net-snmp/library/snmpIPv4BaseDomain.h>
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /*
  15. * The SNMP over TCP over IPv4 transport domain is identified by
  16. * transportDomainTcpIpv4 as defined in RFC 3419.
  17. */
  18. #define TRANSPORT_DOMAIN_TCP_IP 1,3,6,1,2,1,100,1,5
  19. NETSNMP_IMPORT oid netsnmp_snmpTCPDomain[];
  20. netsnmp_transport *
  21. netsnmp_tcp_transport(const struct netsnmp_ep *ep, int local);
  22. /*
  23. * "Constructor" for transport domain object.
  24. */
  25. void netsnmp_tcp_ctor(void);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif /*NETSNMP_TRANSPORT_TCP_DOMAIN */
  30. #endif/*_SNMPTCPDOMAIN_H*/