diff options
author | Ondrej Filip <feela@network.cz> | 2004-06-01 10:32:02 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2004-06-01 10:32:02 +0000 |
commit | b613b9928bdb1df3bd541d318d7f9c1bf492dfbc (patch) | |
tree | 30f04c90d3cdd5916c0586f8f8f65b3c9288cb10 /sysdep/unix | |
parent | 7fdd338c3600aa4e7a0ae3d5ce270b5a1f8ccc0c (diff) |
#ifdef CONFIG_UNIX_DONTROUTE added.
Diffstat (limited to 'sysdep/unix')
-rw-r--r-- | sysdep/unix/io.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index c3bd5f8c..070150f6 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -578,8 +578,10 @@ sk_setup(sock *s) WARN("IP_TOS"); if (s->ttl >= 0 && setsockopt(fd, SOL_IP, IP_TTL, &s->ttl, sizeof(s->ttl)) < 0) ERR("IP_TTL"); - //if (s->ttl == 1 && setsockopt(fd, SOL_SOCKET, SO_DONTROUTE, &one, sizeof(one)) < 0) - // ERR("SO_DONTROUTE"); +#ifdef CONFIG_UNIX_DONTROUTE + if (s->ttl == 1 && setsockopt(fd, SOL_SOCKET, SO_DONTROUTE, &one, sizeof(one)) < 0) + ERR("SO_DONTROUTE"); +#endif #endif err = NULL; bad: |