]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Failure to set socket TOS is not a fatal error.
authorMartin Mares <mj@ucw.cz>
Sat, 2 Oct 1999 11:06:44 +0000 (11:06 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 2 Oct 1999 11:06:44 +0000 (11:06 +0000)
sysdep/unix/io.c

index fef1bd7635f408414e57819c6f6e5b57c55bcd1a..943a6a72fb4cf787c4406d86f2a34f0d589295ec 100644 (file)
@@ -328,6 +328,7 @@ sk_new(pool *p)
 }
 
 #define ERR(x) do { err = x; goto bad; } while(0)
+#define WARN(x) log(L_WARN "sk_setup: " x)
 
 #ifdef IPV6
 
@@ -403,7 +404,7 @@ sk_setup(sock *s)
     ERR("IPV6_UNICAST_HOPS");
 #else
   if ((s->tos >= 0) && setsockopt(fd, SOL_IP, IP_TOS, &s->tos, sizeof(s->tos)) < 0)
-    ERR("IP_TOS");
+    WARN("IP_TOS");
   if (s->ttl >= 0)
     {
       if (setsockopt(fd, SOL_IP, IP_TTL, &s->ttl, sizeof(s->ttl)) < 0)
@@ -820,6 +821,7 @@ sk_dump_all(void)
 }
 
 #undef ERR
+#undef WARN
 
 /*
  *     Main I/O Loop