| Server IP : 23.254.227.96 / Your IP : 216.73.216.21 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /proc/self/root/usr/include/net-snmp/library/ |
Upload File : |
#ifndef _SNMPUDPIPV6DOMAIN_H
#define _SNMPUDPIPV6DOMAIN_H
/*
* Portions of this file are copyrighted by:
* Copyright (c) 2016 VMware, Inc. All rights reserved.
* Use is subject to license terms specified in the COPYING file
* distributed with the Net-SNMP package.
*/
#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(const struct sockaddr_in6 *addr,
int local);
netsnmp_transport *
netsnmp_udp6_transport_with_source(const struct sockaddr_in6 *addr, int local,
const struct sockaddr_in6 *src_addr);
/** internal functions for derivatives of udpipv6 */
netsnmp_transport *
netsnmp_udp6_transport_init(const struct sockaddr_in6 *addr, int local);
int
netsnmp_udp6_transport_socket(int flags);
int
netsnmp_udp6_transport_bind(netsnmp_transport *t,
const struct sockaddr_in6 *addr, int flags);
void
netsnmp_udp6_transport_get_bound_addr(netsnmp_transport *t);
/*
* 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*/