---
src/6to4.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/6to4.c b/src/6to4.c
index 35540bf..0dfcbf7 100644
--- a/src/6to4.c
+++ b/src/6to4.c
@@ -396,8 +396,8 @@ static gboolean web_result(GWebResult *result, gpointer
user_data)
static int init_6to4(struct in_addr *ip4addr)
{
unsigned int a, b, c, d;
+ int ret, if_index;
in_addr_t addr;
- int ret;
DBG("");
@@ -426,9 +426,13 @@ static int init_6to4(struct in_addr *ip4addr)
if (ret)
goto error;
+ if_index = connman_inet_ifindex("tun6to4");
+ if (if_index < 0)
+ goto error;
+
/* We try to verify that connectivity through tunnel works ok.
*/
- web = g_web_new(0);
+ web = g_web_new(if_index);
if (web == NULL)
goto error;
--
1.7.8.rc3
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman