Add recvfromto6

This commit is contained in:
Samuel Thibault 2023-05-18 00:38:19 +02:00
parent c3eb1be0b4
commit 13d7080ac1
3 changed files with 78 additions and 24 deletions

5
util.h
View file

@ -10,6 +10,9 @@ ssize_t sendtofrom(int s, void const *buf, size_t len, int flags,
struct sockaddr const *to, socklen_t tolen, struct in_addr const *from);
ssize_t recvfromto(int s, void *buf, size_t len, int flags,
struct sockaddr *from, socklen_t *fromlen, struct in_addr *toaddr);
struct sockaddr *from, socklen_t *fromlen, struct in_addr *toaddr, int *ifidx);
ssize_t recvfromto6(int s, void *buf, size_t len, int flags,
struct sockaddr *from, socklen_t *fromlen, struct in6_addr *toaddr, int *ifidx);
#endif /* __UTIL_H__ */