about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-12-11 08:08:17 +0000
committerLaurent Bercot <ska@appnovation.com>2023-12-11 08:08:17 +0000
commit1fe597981c105bc3d1c9a38443e66ae6d61f2374 (patch)
treeff81d18bc34adfb11779ecb804f49ff13bca3f3b /src
parentfdc1396b7ee156d074e6cff07b56e74546de1973 (diff)
downloadskalibs-1fe597981c105bc3d1c9a38443e66ae6d61f2374.tar.gz
skalibs-1fe597981c105bc3d1c9a38443e66ae6d61f2374.tar.xz
skalibs-1fe597981c105bc3d1c9a38443e66ae6d61f2374.zip
Prepare for 2.14.1.0; add socket_sendnb46_g and socket_recvnb46_g
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/headers/ip46-header1
-rw-r--r--src/headers/ip46-with2
-rw-r--r--src/headers/ip46-without2
3 files changed, 5 insertions, 0 deletions
diff --git a/src/headers/ip46-header b/src/headers/ip46-header
index 82c5e81..49936a7 100644
--- a/src/headers/ip46-header
+++ b/src/headers/ip46-header
@@ -8,6 +8,7 @@
 #include <errno.h>
 
 #include <skalibs/fmtscan.h>
+#include <skalibs/tai.h>
 #include <skalibs/socket.h>
 
 #define IP46_FMT IP6_FMT
diff --git a/src/headers/ip46-with b/src/headers/ip46-with
index 29f0dd0..5eec291 100644
--- a/src/headers/ip46-with
+++ b/src/headers/ip46-with
@@ -34,4 +34,6 @@ extern int socket_local46 (int, ip46 *, uint16_t *) ;
 extern int socket_remote46 (int, ip46 *, uint16_t *) ;
 
 #define socket_recvnb46(fd, buf, len, i, port, deadline, stamp) ((i)->is6 ? socket_recvnb6(fd, buf, len, (i)->ip, port, deadline, stamp) : socket_recvnb4(fd, buf, len, (i)->ip, port, deadline, stamp))
+#define socket_recvnb46_g(fd, buf, len, i, port, deadline) socket_recvnb46(fd, buf, len, i, port, (deadline), &STAMP)
 #define socket_sendnb46(fd, buf, len, i, port, deadline, stamp) ((i)->is6 ? socket_sendnb6(fd, buf, len, (i)->ip, port, deadline, stamp) : socket_sendnb4(fd, buf, len, (i)->ip, port, deadline, stamp))
+#define socket_sendnb46_g(fd, buf, len, i, port, deadline) socket_sendnb46(fd, buf, len, i, port, (deadline), &STAMP)
diff --git a/src/headers/ip46-without b/src/headers/ip46-without
index 9d224e1..5f332db 100644
--- a/src/headers/ip46-without
+++ b/src/headers/ip46-without
@@ -38,4 +38,6 @@ struct ip46_s
 #define socket_remote46(fd, i, port) socket_remote4(fd, (i)->ip, port)
 
 #define socket_recvnb46(fd, buf, len, i, port, deadline, stamp) socket_recvnb4(fd, buf, len, (i)->ip, port, deadline, stamp)
+#define socket_recvnb46_g(fd, buf, len, i, port, deadline) socket_recvnb46(fd, buf, len, i, port, (deadline), &STAMP)
 #define socket_sendnb46(fd, buf, len, i, port, deadline, stamp) socket_sendnb4(fd, buf, len, (i)->ip, port, deadline, stamp)
+#define socket_sendnb46_g(fd, buf, len, i, port, deadline, stamp) socket_sendnb46(fd, buf, len, i, port, (deadline), &STAMP)