0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-11-09 12:48:43 +00:00

#ifdef CONFIG_UNIX_DONTROUTE added.

This commit is contained in:
Ondrej Filip 2004-06-01 10:32:02 +00:00
parent 7fdd338c36
commit b613b9928b
6 changed files with 9 additions and 2 deletions

View File

@ -8,6 +8,7 @@ CONFIG_ALL_TABLES_AT_ONCE Kernel scanner wants to process all tables at once
CONFIG_UNIX_IFACE Use Unix interface scanner
CONFIG_UNIX_SET Use Unix route setting
CONFIG_UNIX_DONTROUTE Use setsockopts DONTROUTE (undef for *BSD)
CONFIG_LINUX_SCAN Use Linux /proc/net/route scanner
CONFIG_ALL_MULTICAST krt-iface: All devices support multicasting (i.e., ignore IFF_MULTICAST)

View File

@ -12,6 +12,7 @@
#undef CONFIG_UNIX_IFACE
#undef CONFIG_UNIX_SET
#undef CONFIG_UNIX_DONTROUTE
#define CONFIG_ALL_MULTICAST
#define CONFIG_UNNUM_MULTICAST

View File

@ -12,6 +12,7 @@
#define CONFIG_UNIX_IFACE
#define CONFIG_UNIX_SET
#define CONFIG_UNIX_DONTROUTE
#define CONFIG_LINUX_SCAN
#define CONFIG_LINUX_MC_MREQ_BIND

View File

@ -12,6 +12,7 @@
#define CONFIG_UNIX_IFACE
#define CONFIG_UNIX_SET
#define CONFIG_UNIX_DONTROUTE
#define CONFIG_LINUX_SCAN
#define CONFIG_LINUX_MC_MREQN

View File

@ -12,6 +12,7 @@
#define CONFIG_ALL_TABLES_AT_ONCE
#define CONFIG_LINUX_MC_MREQN
#define CONFIG_UNIX_DONTROUTE
/*
Link: sysdep/linux/netlink

View File

@ -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: