mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
75da2163db
As a preparation for introducing flow control for multicast and datagram messaging we need a more strictly defined framework than we have now. A socket must be able keep track of exactly how many and which other sockets it is allowed to communicate with at any moment, and keep the necessary state for those. We therefore introduce a new concept we have named Communication Group. Sockets can join a group via a new setsockopt() call TIPC_GROUP_JOIN. The call takes four parameters: 'type' serves as group identifier, 'instance' serves as an logical member identifier, and 'scope' indicates the visibility of the group (node/cluster/zone). Finally, 'flags' makes it possible to set certain properties for the member. For now, there is only one flag, indicating if the creator of the socket wants to receive a copy of broadcast or multicast messages it is sending via the socket, and if wants to be eligible as destination for its own anycasts. A group is closed, i.e., sockets which have not joined a group will not be able to send messages to or receive messages from members of the group, and vice versa. Any member of a group can send multicast ('group broadcast') messages to all group members, optionally including itself, using the primitive send(). The messages are received via the recvmsg() primitive. A socket can only be member of one group at a time. Signed-off-by: Jon Maloy <jon.maloy@ericsson.com> Acked-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
16 lines
419 B
Makefile
16 lines
419 B
Makefile
#
|
|
# Makefile for the Linux TIPC layer
|
|
#
|
|
|
|
obj-$(CONFIG_TIPC) := tipc.o
|
|
|
|
tipc-y += addr.o bcast.o bearer.o \
|
|
core.o link.o discover.o msg.o \
|
|
name_distr.o subscr.o monitor.o name_table.o net.o \
|
|
netlink.o netlink_compat.o node.o socket.o eth_media.o \
|
|
server.o socket.o group.o
|
|
|
|
tipc-$(CONFIG_TIPC_MEDIA_UDP) += udp_media.o
|
|
tipc-$(CONFIG_TIPC_MEDIA_IB) += ib_media.o
|
|
tipc-$(CONFIG_SYSCTL) += sysctl.o
|