Handle TOS 0 also...
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 28 Nov 2005 01:09:59 +0000 (01:09 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Mon, 28 Nov 2005 01:09:59 +0000 (01:09 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@525 959494ce-11ee-0310-bf91-de5d638817bd

daemon/net.c

index d98f620..a5ff113 100644 (file)
@@ -866,6 +866,9 @@ int socksettos(struct socket *sk, int tos)
     {
        switch(tos)
        {
+       case 0:
+           buf = 0;
+           break;
        case SOCK_TOS_MINCOST:
            buf = 0x02;
            break;
@@ -893,6 +896,8 @@ int socksettos(struct socket *sk, int tos)
     {
        switch(tos)
        {
+       case 0:
+           buf = 0;
        case SOCK_TOS_MINCOST:
            buf = confgetint("net", "diffserv-mincost");
            break;