#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_IFACE Use Unix interface scanner
CONFIG_UNIX_SET Use Unix route setting 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_LINUX_SCAN Use Linux /proc/net/route scanner
CONFIG_ALL_MULTICAST krt-iface: All devices support multicasting (i.e., ignore IFF_MULTICAST) 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_IFACE
#undef CONFIG_UNIX_SET #undef CONFIG_UNIX_SET
#undef CONFIG_UNIX_DONTROUTE
#define CONFIG_ALL_MULTICAST #define CONFIG_ALL_MULTICAST
#define CONFIG_UNNUM_MULTICAST #define CONFIG_UNNUM_MULTICAST

View file

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

View file

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

View file

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

View file

@ -578,8 +578,10 @@ sk_setup(sock *s)
WARN("IP_TOS"); WARN("IP_TOS");
if (s->ttl >= 0 && setsockopt(fd, SOL_IP, IP_TTL, &s->ttl, sizeof(s->ttl)) < 0) if (s->ttl >= 0 && setsockopt(fd, SOL_IP, IP_TTL, &s->ttl, sizeof(s->ttl)) < 0)
ERR("IP_TTL"); ERR("IP_TTL");
//if (s->ttl == 1 && setsockopt(fd, SOL_SOCKET, SO_DONTROUTE, &one, sizeof(one)) < 0) #ifdef CONFIG_UNIX_DONTROUTE
// ERR("SO_DONTROUTE"); if (s->ttl == 1 && setsockopt(fd, SOL_SOCKET, SO_DONTROUTE, &one, sizeof(one)) < 0)
ERR("SO_DONTROUTE");
#endif
#endif #endif
err = NULL; err = NULL;
bad: bad: