ptp-helper: Disable multicast loopback

We're not really interested in our own packets and ignore them anyway.
This commit is contained in:
Sebastian Dröge 2015-11-18 09:21:23 +02:00
parent 61a8c946ac
commit 533d1c8eb7

View file

@ -226,6 +226,7 @@ setup_sockets (void)
if (!socket_event)
g_error ("Couldn't create event socket: %s", err->message);
g_clear_error (&err);
g_socket_set_multicast_loopback (socket_event, FALSE);
socket_general =
g_socket_new (G_SOCKET_FAMILY_IPV4, G_SOCKET_TYPE_DATAGRAM,
@ -233,6 +234,7 @@ setup_sockets (void)
if (!socket_general)
g_error ("Couldn't create general socket: %s", err->message);
g_clear_error (&err);
g_socket_set_multicast_loopback (socket_general, FALSE);
/* Bind sockets */
bind_addr = g_inet_address_new_any (G_SOCKET_FAMILY_IPV4);