summaryrefslogtreecommitdiffstats
path: root/network/common.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-10-31 14:50:35 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-10-31 14:50:35 +0000
commit1884104ecb9b6b6a9ef6cc02d04e4861c9f1f6f6 (patch)
tree696ccddd2d2c243744841cbedf47205297a9ad5e /network/common.c
parenta67fa98d477404a1b65e283b646db77914106c35 (diff)
Add MULTICAST flag so interfaces could get announced by avahi-daemon.
Diffstat (limited to 'network/common.c')
-rw-r--r--network/common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/network/common.c b/network/common.c
index 7a88a1bd..c7610a47 100644
--- a/network/common.c
+++ b/network/common.c
@@ -246,9 +246,9 @@ int bnep_if_up(const char *devname, uint16_t id)
g_spawn_async(NULL, (char **) argv, NULL, flags,
bnep_setup, (gpointer) devname, &pid,
NULL);
-
- return bnep->pid;
}
+
+ return bnep->pid;
}
sd = socket(AF_INET6, SOCK_DGRAM, 0);
@@ -256,6 +256,7 @@ int bnep_if_up(const char *devname, uint16_t id)
strcpy(ifr.ifr_name, devname);
ifr.ifr_flags |= IFF_UP;
+ ifr.ifr_flags |= IFF_MULTICAST;
if ((ioctl(sd, SIOCSIFFLAGS, (caddr_t) &ifr)) < 0) {
err = errno;