net-snmp
5.4.1
|
00001 #ifndef _SNMPTCPDOMAIN_H 00002 #define _SNMPTCPDOMAIN_H 00003 00004 #ifdef NETSNMP_TRANSPORT_TCP_DOMAIN 00005 00006 #ifdef __cplusplus 00007 extern "C" { 00008 #endif 00009 00010 #include <net-snmp/library/snmp_transport.h> 00011 #include <net-snmp/library/asn1.h> 00012 00013 #if HAVE_SYS_SOCKET_H 00014 #include <sys/socket.h> 00015 #endif 00016 #if HAVE_NETINET_IN_H 00017 #include <netinet/in.h> 00018 #endif 00019 00020 /* 00021 * The SNMP over TCP over IPv4 transport domain is identified by 00022 * transportDomainTcpIpv4 as defined in RFC 3419. 00023 */ 00024 00025 #define TRANSPORT_DOMAIN_TCP_IP 1,3,6,1,2,1,100,1,5 00026 NETSNMP_IMPORT oid netsnmp_snmpTCPDomain[]; 00027 00028 netsnmp_transport *netsnmp_tcp_transport(struct sockaddr_in *addr, int local); 00029 00030 /* 00031 * "Constructor" for transport domain object. 00032 */ 00033 00034 void netsnmp_tcp_ctor(void); 00035 00036 #ifdef __cplusplus 00037 } 00038 #endif 00039 #endif /*NETSNMP_TRANSPORT_TCP_DOMAIN */ 00040 00041 #endif/*_SNMPTCPDOMAIN_H*/