From 8e7ce64a6eb1b36a4b986b3c6e61b5a0f755256d Mon Sep 17 00:00:00 2001 From: Timo Wischer Date: Thu, 5 Nov 2020 10:23:13 +0100 Subject: [PATCH] avtp: crf: Process also local CRF streams Without this patch locally generated CRF streams will be ignored. Therefore the same network interface could not be CRF talker and CRF listener. Part-of: --- subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfbase.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfbase.c b/subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfbase.c index 4f06cf0536..19d076c408 100644 --- a/subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfbase.c +++ b/subprojects/gst-plugins-bad/ext/avtp/gstavtpcrfbase.c @@ -181,7 +181,7 @@ setup_socket (GstAvtpCrfBase * avtpcrfbase) guint8 addr[ETH_ALEN]; int fd, res, ifindex; - fd = socket (AF_PACKET, SOCK_DGRAM, htons (ETH_P_TSN)); + fd = socket (AF_PACKET, SOCK_DGRAM, htons (ETH_P_ALL)); if (fd < 0) { GST_ERROR_OBJECT (avtpcrfbase, "Failed to open socket: %s", g_strerror (errno)); @@ -197,7 +197,7 @@ setup_socket (GstAvtpCrfBase * avtpcrfbase) } sk_addr.sll_family = AF_PACKET; - sk_addr.sll_protocol = htons (ETH_P_TSN); + sk_addr.sll_protocol = htons (ETH_P_ALL); sk_addr.sll_ifindex = ifindex; res = bind (fd, (struct sockaddr *) &sk_addr, sizeof (sk_addr));