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 committed by Tim-Philipp Müller
parent 921816400b
commit 001f6dfe51

View file

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