diff options
author | Martin Mares <mj@ucw.cz> | 1999-10-02 13:06:44 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-10-02 13:06:44 +0200 |
commit | f782b72c538b5728f6c3f531a25f669f0bf99b2c (patch) | |
tree | 324370f37f69a93a1648b68b0ef913e98e6b38df /sysdep | |
parent | 507cb9e58b947ad8c6ad1c73706a08010d90f4cc (diff) | |
download | bird-f782b72c538b5728f6c3f531a25f669f0bf99b2c.tar bird-f782b72c538b5728f6c3f531a25f669f0bf99b2c.zip |
Failure to set socket TOS is not a fatal error.
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/io.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index fef1bd7..943a6a7 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -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 |