#ifdef CONFIG_UNIX_DONTROUTE added.
This commit is contained in:
parent
7fdd338c36
commit
b613b9928b
6 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
#undef CONFIG_UNIX_IFACE
|
||||
#undef CONFIG_UNIX_SET
|
||||
#undef CONFIG_UNIX_DONTROUTE
|
||||
|
||||
#define CONFIG_ALL_MULTICAST
|
||||
#define CONFIG_UNNUM_MULTICAST
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#define CONFIG_ALL_TABLES_AT_ONCE
|
||||
|
||||
#define CONFIG_LINUX_MC_MREQN
|
||||
#define CONFIG_UNIX_DONTROUTE
|
||||
|
||||
/*
|
||||
Link: sysdep/linux/netlink
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue