mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-10 17:35:59 +00:00
ptp-helper: Disable multicast loopback
We're not really interested in our own packets and ignore them anyway.
This commit is contained in:
parent
61a8c946ac
commit
533d1c8eb7
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue