/usr/include/net-snmp/library/snmpIPv4BaseDomain.h is in libsnmp-dev 5.7.2~dfsg-8.1ubuntu3.
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 | /* IPV4 base transport support functions
*/
#ifndef SNMPIPV4BASE_H
#define SNMPIPV4BASE_H
#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#include <net-snmp/library/snmp_transport.h>
#ifdef __cplusplus
extern "C" {
#endif
/*
* Prototypes
*/
char *netsnmp_ipv4_fmtaddr(const char *prefix, netsnmp_transport *t,
void *data, int len);
/*
* Convert a "traditional" peername into a sockaddr_in structure which is
* written to *addr_ Returns 1 if the conversion was successful, or 0 if it
* failed
*/
int netsnmp_sockaddr_in(struct sockaddr_in *addr, const char *peername,
int remote_port);
int netsnmp_sockaddr_in2(struct sockaddr_in *addr, const char *inpeername,
const char *default_target);
#ifdef __cplusplus
}
#endif
#endif /* SNMPIPV4BASE_H */
|