From e03e1e7c23b2f527d43ec72b01c93185ebc63008 Mon Sep 17 00:00:00 2001 From: fredrik Date: Tue, 29 May 2007 15:33:40 +0000 Subject: [PATCH] SOL_IP -> IPPROTO_IP git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1051 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/net.c b/daemon/net.c index 5471e45..535f313 100644 --- a/daemon/net.c +++ b/daemon/net.c @@ -1019,7 +1019,7 @@ int socksettos(struct socket *sk, int tos) flog(LOG_WARNING, "attempted to set unknown TOS value %i to IPv4 sock", tos); return(-1); } - if(setsockopt(sk->fd, SOL_IP, IP_TOS, &buf, sizeof(buf)) < 0) + if(setsockopt(sk->fd, IPPROTO_IP, IP_TOS, &buf, sizeof(buf)) < 0) { flog(LOG_WARNING, "could not set sock TOS to %i: %s", tos, strerror(errno)); return(-1); -- 2.11.0