diff options
Diffstat (limited to 'sysdep/unix')
-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) { |