[erlang-questions] igmp v3 and join source specific multicast

Mark Geib mark.geib.44@REDACTED
Mon Aug 19 16:28:17 CEST 2019


AFAIK there are no options currently for supporting source specific multicast,
SSM.

Mark.

> On Aug 18, 2019, at 11:36 PM, Sergej Jurečko <sergej.jurecko@REDACTED> wrote:
> 
> Why do you use raw instead of multicast options in gen_udp:open ?
> 
> 
> Regards,
> Sergej
> 
>> On 19 Aug 2019, at 04:30, Mark Geib <mark.geib.44@REDACTED> wrote:
>> 
>> Using the code below I am able to join a source specific multicast
>> group and receive the datagrams from the specified source. However,
>> when I open a second socket and join a second group,  i.e. different
>> multicast address, I start to see the datagrams from both groups on
>> both sockets. Any ideas would be greatly appreciated.
>> 
>> Bin = << GroupIp/binary, LocalIp/binary, SourceIp/binary >>,
>> 
>> {ok, Socket} = gen_udp:open(Port,
>>                           [inet,
>>                            binary,
>>                            {active,true},
>>                            {reuseaddr,true},
>>                            {recbuf, RecBuf},
>>                            {buffer, Buffer},
>>                            {read_packets, ReadPackets},
>>                            {raw, 0, 39, Bin}]),
>> 
>> Thanks,
>> Mark.
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
> 




More information about the erlang-questions mailing list