summaryrefslogtreecommitdiff
path: root/src/headers/ip46-without
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-08-18 07:21:13 +0000
committerLaurent Bercot <ska@appnovation.com>2021-08-18 07:21:13 +0000
commit0f81e50733845b5b67156bff6392c5e8db3c169d (patch)
tree6de79135ec1d4b6013490bc4adcc70404e9d9235 /src/headers/ip46-without
parent4f53303d8dd06e6c34491275e0d80b43082d247f (diff)
downloadskalibs-0f81e50733845b5b67156bff6392c5e8db3c169d.tar.xz
Add some ip46 macros
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/headers/ip46-without')
-rw-r--r--src/headers/ip46-without13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/headers/ip46-without b/src/headers/ip46-without
index 43d3038..9d224e1 100644
--- a/src/headers/ip46-without
+++ b/src/headers/ip46-without
@@ -17,8 +17,21 @@ struct ip46_s
#define socket_connect46(s, i, port) socket_connect4(s, (i)->ip, port)
#define socket_bind46(s, i, port) socket_bind4(s, (i)->ip, port)
#define socket_bind46_reuse(s, i, port) socket_bind4_reuse(s, (i)->ip, port)
+
#define socket_tcp46(h) socket_tcp4()
+#define socket_tcp46_b(h) socket_tcp4_b()
+#define socket_tcp46_nb(h) socket_tcp4_nb()
+#define socket_tcp46_coe(h) socket_tcp4_coe()
+#define socket_tcp46_nbcoe(h) socket_tcp4_nbcoe()
+#define socket_tcp46_internal(h, flags) socket_tcp4_internal(flags)
+
#define socket_udp46(h) socket_udp4()
+#define socket_udp46_b(h) socket_udp4_b()
+#define socket_udp46_nb(h) socket_udp4_nb()
+#define socket_udp46_coe(h) socket_udp4_coe()
+#define socket_udp46_nbcoe(h) socket_udp4_nbcoe()
+#define socket_udp46_internal(h, flags) socket_udp4_internal(flags)
+
#define socket_recv46(fd, s, len, i, port) socket_recv4(fd, s, len, (i)->ip, port)
#define socket_send46(fd, s, len, i, port) socket_send4(fd, s, len, (i)->ip, port)
#define socket_local46(fd, i, port) socket_local4(fd, (i)->ip, port)