[vlc-devel] [PATCH 1/3] Add services-advertisement configuration options

Roland Bewick roland.bewick at gmail.com
Wed Sep 4 08:48:54 CEST 2019


On 3/09/2019 10:13 PM, Rémi Denis-Courmont wrote:
> Le maanantaina 2. syyskuuta 2019, 8.25.41 EEST Roland Bewick a écrit :
>> --services-advertisement=mdns
>> --services-advertisement-address-family={v4,v6}
>> ---
>>   src/libvlc-module.c | 21 +++++++++++++++++++++
>>   1 file changed, 21 insertions(+)
>>
>> diff --git a/src/libvlc-module.c b/src/libvlc-module.c
>> index f5de78bcae..76e5287b8d 100644
>> --- a/src/libvlc-module.c
>> +++ b/src/libvlc-module.c
>> @@ -1232,6 +1232,21 @@ static const char *const psz_recursive_list_text[] =
>> { "Specifies the services discovery modules to preload, separated by " \
>> "colons. Typical value is \"sap\"." )
>>
>> +static const char *const psz_address_family_list[] = {
>> +    "v4", "v6" };
>> +static const char *const psz_address_family_list_text[] = {
>> +    N_("IPv4"), N_("IPv6") };
> This is not right. Dual-stack is a thing. And we already have flags for this,
> no need to add new ones. And this really ought to be automatic anyway.
So the right way to go is to modify libmicrodns to support hosting on 
both IPV4 and IPV6? (mdns_init would take an array of addresses to 
listen to, instead of just one)


More information about the vlc-devel mailing list