Revise TOS handling.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 28 Nov 2005 00:58:28 +0000 (00:58 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 28 Nov 2005 00:58:28 +0000 (00:58 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@522 959494ce-11ee-0310-bf91-de5d638817bd

daemon/net.c

index 16bcbe7..d98f620 100644 (file)
@@ -867,16 +867,16 @@ int socksettos(struct socket *sk, int tos)
        switch(tos)
        {
        case SOCK_TOS_MINCOST:
-           buf = IPTOS_MINCOST;
+           buf = 0x02;
            break;
        case SOCK_TOS_MAXREL:
-           buf = IPTOS_RELIABILITY;
+           buf = 0x04;
            break;
        case SOCK_TOS_MAXTP:
-           buf = IPTOS_THROUGHPUT;
+           buf = 0x08;
            break;
        case SOCK_TOS_MINDELAY:
-           buf = IPTOS_LOWDELAY;
+           buf = 0x10;
            break;
        default:
            flog(LOG_WARNING, "attempted to set unknown TOS value %i to IPv4 sock", tos);