#ifndef UDPFROMTO_H
#define UDPFROMTO_H
/*
 * $Id: 7b029cd6227d60281bbf36f9e165f47dc1894c31 $
 *
 * @file udpfromto.h
 */

RCSIDH(udpfromtoh, "$Id: 7b029cd6227d60281bbf36f9e165f47dc1894c31 $")

#include <freeradius/libradius.h>

#ifdef __cplusplus
extern "C" {
#endif

#ifdef WITH_UDPFROMTO
int udpfromto_init(int s);
int recvfromto(int s, void *buf, size_t len, int flags,
	       struct sockaddr *from, socklen_t *fromlen,
	       struct sockaddr *to, socklen_t *tolen);
int sendfromto(int s, void *buf, size_t len, int flags,
	       struct sockaddr *from, socklen_t fromlen,
	       struct sockaddr *to, socklen_t tolen);
#endif

#ifdef __cplusplus
}
#endif

#endif
