summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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)