igmp v3 and join source specific multicast

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

igmp v3 and join source specific multicast

Mark Geib-2
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
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: igmp v3 and join source specific multicast

Sergej Jurečko
Why do you use raw instead of multicast options in gen_udp:open ?


Regards,
Sergej

> On 19 Aug 2019, at 04:30, Mark Geib <[hidden email]> 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
> [hidden email]
> http://erlang.org/mailman/listinfo/erlang-questions

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: igmp v3 and join source specific multicast

Mark Geib-2
AFAIK there are no options currently for supporting source specific multicast,
SSM.

Mark.

> On Aug 18, 2019, at 11:36 PM, Sergej Jurečko <[hidden email]> 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 <[hidden email]> 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
>> [hidden email]
>> http://erlang.org/mailman/listinfo/erlang-questions
>

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions