/usr/include/net-snmp/library/snmpUDPIPv6Domain.h is in libsnmp-dev 5.7.3+dfsg-1.8ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | #ifndef _SNMPUDPIPV6DOMAIN_H
#define _SNMPUDPIPV6DOMAIN_H
#include <net-snmp/types.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <net-snmp/library/snmp_transport.h>
config_require(IPv6Base)
config_require(UDPBase)
#include <net-snmp/library/snmpIPv6BaseDomain.h>
/*
* The SNMP over UDP over IPv6 transport domain is identified by
* transportDomainUdpIpv6 as defined in RFC 3419.
*/
#define TRANSPORT_DOMAIN_UDP_IPV6 1,3,6,1,2,1,100,1,2
NETSNMP_IMPORT oid netsnmp_UDPIPv6Domain[];
netsnmp_transport *netsnmp_udp6_transport(struct sockaddr_in6 *addr,
int local);
/*
* Convert a "traditional" peername into a sockaddr_in6 structure which is
* written to *addr. Returns 1 if the conversion was successful, or 0 if it
* failed.
*/
int netsnmp_sockaddr_in6(struct sockaddr_in6 *addr,
const char *peername,
int remote_port);
NETSNMP_IMPORT
void netsnmp_udp6_agent_config_tokens_register(void);
NETSNMP_IMPORT
void netsnmp_udp6_parse_security(const char *token,
char *param);
NETSNMP_IMPORT
int netsnmp_udp6_getSecName(void *opaque, int olength,
const char *community,
int community_len,
const char **secname,
const char **contextName);
/*
* "Constructor" for transport domain object.
*/
NETSNMP_IMPORT void netsnmp_udpipv6_ctor(void);
#ifdef __cplusplus
}
#endif
#endif/*_SNMPUDPIPV6DOMAIN_H*/
|