mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-07 07:55:41 +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
921816400b
commit
001f6dfe51
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue