summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6d95bf)
raw | patch | inline | side by side (parent: b6d95bf)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 5 Apr 2010 14:32:19 +0000 (16:32 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 5 Apr 2010 14:32:19 +0000 (16:32 +0200) |
src/network.c | patch | blob | history |
diff --git a/src/network.c b/src/network.c
index 9cb8c38e071344a24fde6aa3909b99f619fe0cc9..af4a117c466a83e2ef5f7da82c28e1bf0a1cd80c 100644 (file)
--- a/src/network.c
+++ b/src/network.c
@@ -1653,6 +1653,7 @@ static int network_set_interface (const sockent_t *se, const struct addrinfo *ai
}
}
+ /* else: Not a multicast interface. */
#if defined(HAVE_IF_INDEXTONAME) && HAVE_IF_INDEXTONAME && defined(SO_BINDTODEVICE)
if (se->interface != 0)
{
@@ -1673,7 +1674,18 @@ static int network_set_interface (const sockent_t *se, const struct addrinfo *ai
return (-1);
}
}
-#endif /* HAVE_IF_INDEXTONAME && SO_BINDTODEVICE */
+/* #endif HAVE_IF_INDEXTONAME && SO_BINDTODEVICE */
+
+#else
+ WARNING ("network plugin: Cannot set the interface on a unicast "
+ "socket because "
+# if !defined(SO_BINDTODEVICE)
+ "the the \"SO_BINDTODEVICE\" socket option "
+# else
+ "the \"if_indextoname\" function "
+# endif
+ "is not available on your system.");
+#endif
return (0);
} /* }}} network_set_interface */