Fixed conformedness of IP_TOS.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 4 Jun 2007 19:15:06 +0000 (19:15 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 4 Jun 2007 19:15:06 +0000 (19:15 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@1060 959494ce-11ee-0310-bf91-de5d638817bd

clients/gtk2/main.c

index aebab1d..5aac1e4 100644 (file)
@@ -1085,7 +1085,7 @@ void handleresps(void)
                dcdisconnected();
            } else {
                tosbuf = 0x10; /* Minimum cost */
-               setsockopt(dcfd, SOL_IP, IP_TOS, &tosbuf, sizeof(tosbuf));
+               setsockopt(dcfd, IPPROTO_IP, IP_TOS, &tosbuf, sizeof(tosbuf));
                updatesbar(_("Connected"));
                dc_loginasync(connectas, 1, loginconv, logincallback, NULL);
            }