What is the difference between IP_ADD_MEMBERSHIP / IP_DROP_MEMBERSHIP and IP_ADD_SOURCE_MEMBERSHIP / IP_DROP_SOURCE_MEMBERSHIP?

Work on a project that sends multicast data packets, and recipients can select / delete a group as needed. I noticed that there are two ways to merge / exit a group: IP_ADD_MEMBERSHIP / IP_DROP_MEMBERSHIP and IP_ADD_SOURCE_MEMBERSHIP / IP_DROP_SOURCE_MEMBERSHIP. It was not possible to get something from the man pages here, so throwing this into an SO guru. What is the difference, if any, and can you give an example of using one instead of the other?

+3
source share
1 answer

IP_ADD_SOURCE_MEMBERSHIP IP_DROP_SOURCE_MEMBERSHIP SSM ( ).

+5

Source: https://habr.com/ru/post/1788214/


All Articles