noip.c ({get,set}sockopt): Stub support for IPv6 options too.
[preload-hacks] / 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);