git ssb

0+

cel / sslh



Commit 536f7dee83f49f427be528e224de59d956d4c41d

Changed SOL_IP to more-portable IPPROTO_IP

Yves Rutschle committed on 7/25/2013, 7:33:07 PM
Parent: 2781c75ff99cd5da7b25f6b883d78ff3de987308

Files changed

common.cchanged
common.cView
@@ -111,9 +111,9 @@
111111 from.ai_addrlen = sizeof(ss);
112112
113113 res = getpeername(fd_from, from.ai_addr, &from.ai_addrlen);
114114 CHECK_RES_DIE(res, "getpeername");
115- res = setsockopt(fd, SOL_IP, IP_TRANSPARENT, &trans, sizeof(trans));
115+ res = setsockopt(fd, IPPROTO_IP, IP_TRANSPARENT, &trans, sizeof(trans));
116116 CHECK_RES_DIE(res, "setsockopt");
117117 res = bind(fd, from.ai_addr, from.ai_addrlen);
118118 CHECK_RES_RETURN(res, "bind");
119119

Built with git-ssb-web