/* DO NOT EDIT THIS FILE. It has been auto-edited by fixincludes from: "/usr/include/net-snmp/library/snmpUDPIPv4BaseDomain.h" This had to be done to correct non-standard usages in the original, manufacturer supplied header file. */ /* UDPIPV4 base transport support functions */ #ifndef SNMPUDPIPV4BASE_H #define SNMPUDPIPV4BASE_H #if HAVE_SYS_SOCKET_H #include #endif #if HAVE_NETINET_IN_H #include #endif config_require(UDPBase) config_require(IPv4Base) #include #include #ifdef __cplusplus extern "C" { #endif /* * Prototypes */ netsnmp_transport *netsnmp_udpipv4base_transport(struct sockaddr_in *addr, int local); #if defined(__linux__) && defined(IP_PKTINFO) \ || defined(IP_RECVDSTADDR) && !defined(_MSC_VER) int netsnmp_udpipv4_recvfrom(int s, void *buf, int len, struct sockaddr *from, socklen_t *fromlen, struct sockaddr *dstip, socklen_t *dstlen, int *if_index); int netsnmp_udpipv4_sendto(int fd, struct in_addr *srcip, int if_index, struct sockaddr *remote, void *data, int len); #endif #ifdef __cplusplus } #endif #endif /* SNMPUDPIPV4BASE_H */