Commit 536f7dee83f49f427be528e224de59d956d4c41d
Changed SOL_IP to more-portable IPPROTO_IP
Yves Rutschle committed on 7/25/2013, 7:33:07 PMParent: 2781c75ff99cd5da7b25f6b883d78ff3de987308
Files changed
common.c | changed |
common.c | ||
---|---|---|
@@ -111,9 +111,9 @@ | ||
111 | 111 | from.ai_addrlen = sizeof(ss); |
112 | 112 | |
113 | 113 | res = getpeername(fd_from, from.ai_addr, &from.ai_addrlen); |
114 | 114 | 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)); | |
116 | 116 | CHECK_RES_DIE(res, "setsockopt"); |
117 | 117 | res = bind(fd, from.ai_addr, from.ai_addrlen); |
118 | 118 | CHECK_RES_RETURN(res, "bind"); |
119 | 119 |
Built with git-ssb-web