From: Michael Niedermayer <michael@niedermayer.cc>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] avformat: enable UDP IPv6 multicast interface selection
Date: Thu, 14 Mar 2024 22:13:52 +0100
Message-ID: <20240314211352.GB6420@pb2> (raw)
In-Reply-To: <AS8P193MB199731D2B920E976CEF231CE8D292@AS8P193MB1997.EURP193.PROD.OUTLOOK.COM>
[-- Attachment #1.1: Type: text/plain, Size: 2364 bytes --]
On Thu, Mar 14, 2024 at 12:04:47PM +0000, Ignjatović, Lazar (RS) wrote:
> localaddr option now properly works with IPv6 addresses. Properly
> resolved interface index in places where default 0 interface index is
> used (marked with TODO: within udp.c). Added SO_BINDTODEVICE for mcast
> sockets that are used for reading from the network. Need for this
> arises from the fact that [ffx1::*] and [ffx2::*] mcast addresses need
> to have a defined interface for binding to avoid ambiguity between
> multiple link-local networks on the same host. Failing to set this
> option causes errors on Linux systems for interface and link-local
> scopes.
>
> For mcast addresses, bind to mcast address is attempted as before.
> In case that this fails, which will happen on Windows, socket is bound
> to INADDR_ANY/IN6ADDR_ANY_INIT depending on address family. Actual
> interface selection is performed using udp_set_multicast_interface to
> point to the desired interface for sending/listening.
>
> Utilization of sin6_scope_id field enables usage and adequate resolving
> of IPv6 addresses that utilize zone index
> (e.g. fe80::1ff:fe23:4567:890a%eth2)
> This is not fully supported on Windows, thus relying on this field
> is not done on Windows systems.
>
> Closes: #368
>
> Signed-off-by: Lazar Ignjatovic <Lazar.Ignjatovic@cubic.com>
> ---
> configure | 3 ++
> libavformat/ip.c | 45 ++++++++++++++++++++++++
> libavformat/ip.h | 6 ++++
> libavformat/network.h | 6 ++++
> libavformat/udp.c | 80 ++++++++++++++++++++++++++++++++++++++-----
> 5 files changed, 132 insertions(+), 8 deletions(-)
breaks mingw64 build
CC libavformat/ip.o
src/libavformat/ip.c: In function ‘ff_ip_resolve_interface_index’:
src/libavformat/ip.c:206:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1: some warnings being treated as errors
src/ffbuild/common.mak:81: recipe for target 'libavformat/ip.o' failed
make: *** [libavformat/ip.o] Error 1
also configure produces
../configure: 6415: ../configure: network_extralibs+= -liphlpapi: not found
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
I have never wished to cater to the crowd; for what I know they do not
approve, and what they approve I do not know. -- Epicurus
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2024-03-14 21:14 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-14 12:04 Ignjatović, Lazar (RS)
2024-03-14 21:13 ` Michael Niedermayer [this message]
2024-03-18 13:45 ` Ignjatović, Lazar (RS)
2024-03-19 1:23 ` Michael Niedermayer
2024-03-20 9:28 ` [FFmpeg-devel] [PATCH v2] " Ignjatović, Lazar (RS)
2024-03-20 10:51 ` Rémi Denis-Courmont
2024-03-20 11:09 ` Ignjatović, Lazar (RS)
2024-03-20 11:29 ` Rémi Denis-Courmont
2024-03-20 11:45 ` Ignjatović, Lazar (RS)
2024-03-20 12:17 ` Rémi Denis-Courmont
2024-03-20 12:35 ` Ignjatović, Lazar (RS)
2024-03-21 7:26 ` Rémi Denis-Courmont
2024-03-21 13:01 ` Ignjatović, Lazar (RS)
2024-03-21 19:44 ` Rémi Denis-Courmont
2024-03-22 9:31 ` Ignjatović, Lazar (RS)
2024-03-22 9:55 ` Rémi Denis-Courmont
2024-03-22 10:16 ` Ignjatović, Lazar (RS)
2024-03-26 12:34 ` [FFmpeg-devel] [PATCH v3] avformat: enable UDP IPv6 multicast interface selection using localaddr Ignjatović, Lazar (RS)
2024-03-26 18:25 ` Rémi Denis-Courmont
2024-03-27 8:53 ` Ignjatović, Lazar (RS)
2024-03-27 15:31 ` Rémi Denis-Courmont
2024-03-27 15:38 ` [FFmpeg-devel] [PATCH v2] avformat: enable UDP IPv6 multicast interface selection using zone index Ignjatović, Lazar (RS)
2024-04-11 7:45 ` Ignjatović, Lazar (RS)
2024-04-11 7:50 ` Lynne
2024-04-11 7:58 ` Ignjatović, Lazar (RS)
2024-04-11 13:01 ` [FFmpeg-devel] [PATCH v3] " Ignjatović, Lazar (RS)
2024-04-19 10:23 ` Ignjatović, Lazar (RS)
2024-04-28 18:15 ` [FFmpeg-devel] [PATCH v2] " Rémi Denis-Courmont
2024-04-28 20:11 ` Lynne
2024-04-29 7:33 ` Rémi Denis-Courmont
2024-04-29 8:20 ` Lynne
2024-04-29 9:56 ` Rémi Denis-Courmont
2024-04-29 10:32 ` Lynne
2024-04-29 11:34 ` Rémi Denis-Courmont
2024-04-29 12:03 ` Lynne
2024-04-29 0:01 ` Brad Smith
2024-03-26 12:34 ` [FFmpeg-devel] [PATCH] " Ignjatović, Lazar (RS)
2024-03-26 18:24 ` [FFmpeg-devel] [PATCH v2] avformat: enable UDP IPv6 multicast interface selection Rémi Denis-Courmont
-- strict thread matches above, loose matches on Subject: below --
2024-03-14 9:22 [FFmpeg-devel] [PATCH] " Ignjatović, Lazar (RS)
2024-03-14 9:52 ` epirat07
2024-03-14 11:02 ` Ignjatović, Lazar (RS)
2024-03-15 16:26 ` Rémi Denis-Courmont
2024-03-19 9:40 ` Ignjatović, Lazar (RS)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240314211352.GB6420@pb2 \
--to=michael@niedermayer.cc \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git