chiark
/
gitweb
/
~mdw
/
preload-hacks
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e32758e
)
noip.c ({get,set}sockopt): Stub support for IPv6 options too.
author
Mark Wooding
<mdw@distorted.org.uk>
Wed, 6 Jun 2018 18:45:12 +0000
(19:45 +0100)
committer
Mark 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
patch
|
blob
|
blame
|
history
diff --git
a/noip.c
b/noip.c
index 37ec33ce45695b0a1027fb3671ec630244df4a0b..bbd0ebdade3747ebb0f1870569a07d9b0968a58a 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:
{
switch (lev) {
case IPPROTO_IP:
+ case IPPROTO_IPV6:
case IPPROTO_TCP:
case IPPROTO_UDP:
if (*len > 0)
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:
{
switch (lev) {
case IPPROTO_IP:
+ case IPPROTO_IPV6:
case IPPROTO_TCP:
case IPPROTO_UDP:
return (0);
case IPPROTO_TCP:
case IPPROTO_UDP:
return (0);