diff options
author | Jan Moskyto Matejka <mq@ucw.cz> | 2015-12-22 09:45:09 +0100 |
---|---|---|
committer | Jan Moskyto Matejka <mq@ucw.cz> | 2015-12-22 09:45:09 +0100 |
commit | 70b90dde23a684c4d32aa53685f76a73ecba941d (patch) | |
tree | f75dbb0b0920a50b0d5ba1e096233100767b8641 /sysdep/unix/io.c | |
parent | 600998fcb1a1d155215ab32644982e9b78767e3e (diff) |
Better fix of missing AF_INET6? definition in lib/socket.h
Moved the code to sysdep.
Diffstat (limited to 'sysdep/unix/io.c')
-rw-r--r-- | sysdep/unix/io.c | 6 |
1 files changed, 6 insertions, 0 deletions
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) { |