26 RCSIDH(udpfromto_h,
"$Id: 1862e8c2d178d22732f94c4d9f89a99febc5e4ed $")
32 #include <freeradius-devel/build.h>
33 #include <freeradius-devel/missing.h>
34 #include <freeradius-devel/util/time.h>
36 #include <netinet/in.h>
42 int recvfromto(
int s,
void *buf,
size_t len,
int flags,
44 struct sockaddr *from, socklen_t *fromlen,
45 struct sockaddr *to, socklen_t *tolen,
48 int sendfromto(
int s,
void *buf,
size_t len,
int flags,
50 struct sockaddr *from, socklen_t fromlen,
51 struct sockaddr *to, socklen_t tolen);
int sendfromto(int s, void *buf, size_t len, int flags, int ifindex, struct sockaddr *from, socklen_t fromlen, struct sockaddr *to, socklen_t tolen)
Send packet via a file descriptor, setting the src address and outbound interface.
int udpfromto_init(int s, int af)
int recvfromto(int s, void *buf, size_t len, int flags, int *ifindex, struct sockaddr *from, socklen_t *fromlen, struct sockaddr *to, socklen_t *tolen, fr_time_t *when)
Read a packet from a file descriptor, retrieving additional header information.