net-snmp
5.4.1
|
00001 #ifndef _SNMPUDPIPV6DOMAIN_H 00002 #define _SNMPUDPIPV6DOMAIN_H 00003 00004 #ifdef __cplusplus 00005 extern "C" { 00006 #endif 00007 00008 #include <net-snmp/library/snmp_transport.h> 00009 #include <net-snmp/library/asn1.h> 00010 00011 /* 00012 * The SNMP over UDP over IPv6 transport domain is identified by 00013 * transportDomainUdpIpv6 as defined in RFC 3419. 00014 */ 00015 00016 #define TRANSPORT_DOMAIN_UDP_IPV6 1,3,6,1,2,1,100,1,2 00017 NETSNMP_IMPORT oid netsnmp_UDPIPv6Domain[]; 00018 00019 netsnmp_transport *snmp_udp6_transport(struct sockaddr_in6 *addr, 00020 int local); 00021 00022 00023 /* 00024 * Convert a "traditional" peername into a sockaddr_in6 structure which is 00025 * written to *addr. Returns 1 if the conversion was successful, or 0 if it 00026 * failed. 00027 */ 00028 00029 int netsnmp_sockaddr_in6(struct sockaddr_in6 *addr, 00030 const char *peername, 00031 int remote_port); 00032 00033 void netsnmp_udp6_agent_config_tokens_register(void); 00034 void netsnmp_udp6_parse_security(const char *token, 00035 char *param); 00036 00037 int netsnmp_udp6_getSecName(void *opaque, int olength, 00038 const char *community, 00039 int community_len, char **secname, 00040 char **contextName); 00041 00042 /* 00043 * "Constructor" for transport domain object. 00044 */ 00045 00046 void netsnmp_udp6_ctor(void); 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 #endif/*_SNMPUDPIPV6DOMAIN_H*/