From 70b90dde23a684c4d32aa53685f76a73ecba941d Mon Sep 17 00:00:00 2001 From: Jan Moskyto Matejka Date: Tue, 22 Dec 2015 09:45:09 +0100 Subject: Better fix of missing AF_INET6? definition in lib/socket.h Moved the code to sysdep. --- sysdep/unix/io.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sysdep') diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index bc00def9..43c2eeef 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1860,6 +1860,12 @@ sk_write(sock *s) } } +int sk_is_ipv4(sock *s) +{ return s->af == AF_INET; } + +int sk_is_ipv6(sock *s) +{ return s->af == AF_INET6; } + void sk_dump_all(void) { -- cgit v1.2.3