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