1
0
mirror of https://github.com/moparisthebest/sslh synced 2024-11-13 12:45:05 -05:00

Changed SOL_IP to more-portable IPPROTO_IP

This commit is contained in:
Yves Rutschle 2013-07-25 21:33:07 +02:00
parent 2781c75ff9
commit 536f7dee83

View File

@ -112,7 +112,7 @@ int bind_peer(int fd, int fd_from)
res = getpeername(fd_from, from.ai_addr, &from.ai_addrlen);
CHECK_RES_DIE(res, "getpeername");
res = setsockopt(fd, SOL_IP, IP_TRANSPARENT, &trans, sizeof(trans));
res = setsockopt(fd, IPPROTO_IP, IP_TRANSPARENT, &trans, sizeof(trans));
CHECK_RES_DIE(res, "setsockopt");
res = bind(fd, from.ai_addr, from.ai_addrlen);
CHECK_RES_RETURN(res, "bind");