Merge pull request #9251 from sepalani/sockopt

IP/Top: Add missing sockopt
This commit is contained in:
Léo Lam 2020-11-18 02:10:37 +01:00 committed by GitHub
commit 0339889806
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -145,10 +145,18 @@ static s32 MapWiiSockOptNameToNative(u32 optname)
return SO_REUSEADDR; return SO_REUSEADDR;
case 0x80: case 0x80:
return SO_LINGER; return SO_LINGER;
case 0x100:
return SO_OOBINLINE;
case 0x1001: case 0x1001:
return SO_SNDBUF; return SO_SNDBUF;
case 0x1002: case 0x1002:
return SO_RCVBUF; return SO_RCVBUF;
case 0x1003:
return SO_SNDLOWAT;
case 0x1004:
return SO_RCVLOWAT;
case 0x1008:
return SO_TYPE;
case 0x1009: case 0x1009:
return SO_ERROR; return SO_ERROR;
} }