From: Mark Wooding Date: Wed, 6 Jun 2018 18:45:12 +0000 (+0100) Subject: noip.c ({get,set}sockopt): Stub support for IPv6 options too. X-Git-Tag: 1.2.0~27 X-Git-Url: https://git.distorted.org.uk/~mdw/preload-hacks/commitdiff_plain/f47a2b17e1b05f79b12dda93230328281a1a3a79?hp=e32758ea9812d99fcd14521161286ec262fc46e6 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. --- 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);