[PATCH rpld 2/6] send: make sure we check on scope id usage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It fails on my machine and likely fails on others, better
check for it.
---
 send.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/send.c b/send.c
index 97c566d..d026f6a 100644
--- a/send.c
+++ b/send.c
@@ -53,11 +53,9 @@ static int really_send(int sock, const struct iface *iface,
 	pkt_info->ipi6_ifindex = iface->ifindex;
 	memcpy(&pkt_info->ipi6_addr, iface->ifaddr_src, sizeof(struct in6_addr));
 
-#if 1
-//#ifdef HAVE_SIN6_SCOPE_ID
+#ifdef HAVE_SIN6_SCOPE_ID
 	if (IN6_IS_ADDR_LINKLOCAL(&addr.sin6_addr) || IN6_IS_ADDR_MC_LINKLOCAL(&addr.sin6_addr))
 		addr.sin6_scope_id = iface->ifindex;
-//#endif
 #endif
 
 	struct msghdr mhdr;
-- 
2.21.0




[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux