Merge branch 'master' into socket
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 17 Oct 2008 23:11:09 +0000 (01:11 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 17 Oct 2008 23:11:09 +0000 (01:11 +0200)
Conflicts:

daemon/net.c

1  2 
daemon/fnet-dc.c
daemon/net.c
daemon/ui.c

Simple merge
diff --cc daemon/net.c
@@@ -1154,17 -985,13 +1158,19 @@@ static struct ufd *getskufd(struct sock
  int socksettos(struct socket *sk, int tos)
  {
      int buf;
 +    struct ufd *ufd;
+     int dscp2tos;
      
 -    if(sk->family == AF_UNIX)
 +    ufd = getskufd(sk);
 +    if(ufd->type != UFD_SOCK) {
 +      errno = EOPNOTSUPP;
 +      return(-1);
 +    }
 +    if(ufd->d.s.family == AF_UNIX)
        return(0); /* Unix sockets are always perfect. :) */
 -    if(sk->family == AF_INET)
 +    if(ufd->d.s.family == AF_INET)
      {
+       dscp2tos = confgetint("net", "dscp-tos");
        switch(tos)
        {
        case 0:
diff --cc daemon/ui.c
Simple merge