Enable multicast loopback.
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 6 Mar 2009 11:42:38 +0000 (13:42 +0200)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 24 Jun 2009 20:12:07 +0000 (23:12 +0300)
libgssdp/gssdp-socket-source.c

index a9b1704..3103951 100644 (file)
@@ -127,6 +127,15 @@ gssdp_socket_source_new (GSSDPSocketSourceType type,
                 if (res == -1)
                         goto error;
 
+                /* Enable multicast loopback */
+                res = setsockopt (socket_source->poll_fd.fd,
+                                  IPPROTO_IP,
+                                  IP_MULTICAST_LOOP,
+                                  &boolean,
+                                  sizeof (boolean));
+                if (res == -1)
+                       goto error;
+
                 /* Set the interface */
                 res = setsockopt (socket_source->poll_fd.fd,
                                   IPPROTO_IP,