From f47a2b17e1b05f79b12dda93230328281a1a3a79 Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Wed, 6 Jun 2018 19:45:12 +0100 Subject: [PATCH] noip.c ({get,set}sockopt): Stub support for IPv6 options too. These are many and hairy, and this might cause trouble, but I'll risk it for now. --- noip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/noip.c b/noip.c index 37ec33c..bbd0ebd 100644 --- a/noip.c +++ b/noip.c @@ -1732,6 +1732,7 @@ int getsockopt(int sk, int lev, int opt, void *p, socklen_t *len) { switch (lev) { case IPPROTO_IP: + case IPPROTO_IPV6: case IPPROTO_TCP: case IPPROTO_UDP: if (*len > 0) @@ -1745,6 +1746,7 @@ int setsockopt(int sk, int lev, int opt, const void *p, socklen_t len) { switch (lev) { case IPPROTO_IP: + case IPPROTO_IPV6: case IPPROTO_TCP: case IPPROTO_UDP: return (0); -- 2.11.0