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