From 536f7dee83f49f427be528e224de59d956d4c41d Mon Sep 17 00:00:00 2001 From: Yves Rutschle Date: Thu, 25 Jul 2013 21:33:07 +0200 Subject: [PATCH] Changed SOL_IP to more-portable IPPROTO_IP --- common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.c b/common.c index 4023733..283e555 100755 --- a/common.c +++ b/common.c @@ -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");