diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-11 09:13:16 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-12-11 09:13:16 +0000 |
commit | 370bdd3c5739aa8d94753e841aecf71fa04d9400 (patch) | |
tree | 93ec71b6a093971d91c16f61ea3e03147e94525e /src/headers/ip46-footer | |
parent | 1fe597981c105bc3d1c9a38443e66ae6d61f2374 (diff) | |
download | skalibs-370bdd3c5739aa8d94753e841aecf71fa04d9400.tar.xz |
socket_recv46 was never working
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/headers/ip46-footer')
-rw-r--r-- | src/headers/ip46-footer | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/headers/ip46-footer b/src/headers/ip46-footer index a1062bf..5343c54 100644 --- a/src/headers/ip46-footer +++ b/src/headers/ip46-footer @@ -1,7 +1,10 @@ #define ip46_from_ip(i, s, h) ((h) ? ip46_from_ip6(i, s) : ip46_from_ip4(i, s)) -#define socket_recvnb46_g(fd, buf, len, i, port, deadline) socket_recvnb46(fd, buf, len, i, port, (deadline), &STAMP) +extern ssize_t socket_recv46 (int, char *, size_t, ip46 *, uint16_t *, int) ; +extern ssize_t socket_recvnb46 (int, char *, size_t, ip46 *, uint16_t *, int, tain const *, tain *) ; + +#define socket_recvnb46_g(fd, buf, len, i, port, h, deadline) socket_recvnb46(fd, buf, len, i, port, h, (deadline), &STAMP) #define socket_sendnb46_g(fd, buf, len, i, port, deadline) socket_sendnb46(fd, buf, len, i, port, (deadline), &STAMP) extern int socket_deadlineconnstamp46 (int, ip46 const *, uint16_t, tain const *, tain *) ; |