noip.c ({get,set}sockopt): Stub support for IPv6 options too.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 18:45:12 +0000 (19:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 6 Jun 2018 19:13:05 +0000 (20:13 +0100)
These are many and hairy, and this might cause trouble, but I'll risk it
for now.

noip.c

diff --git a/noip.c b/noip.c
index 37ec33c..bbd0ebd 100644 (file)
--- 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);