FD.io VPP
v18.10-34-gcce845e
Vector Packet Processing
|
Used by a 'host' to enable the reception/listening of packets for a specific multicast group. More...
Data Fields | |
vl_api_filter_mode_t | filter |
u8 | n_srcs |
u32 | sw_if_index |
vl_api_ip4_address_t | gaddr |
vl_api_ip4_address_t | saddrs [n_srcs] |
Used by a 'host' to enable the reception/listening of packets for a specific multicast group.
For each socket on which IPMulticastListen has been invoked, the system records the desired multicast reception state for that socket. That state conceptually consists of a set of records of the form:
(interface, multicast-address, filter-mode, source-list)
The socket state evolves in response to each invocation of IPMulticastListen on the socket, as follows:
o If the requested filter mode is INCLUDE and the requested source list is empty, then the entry corresponding to the requested interface and multicast address is deleted if present. If no such entry is present, the request is ignored.
o If the requested filter mode is EXCLUDE or the requested source list is non-empty, then the entry corresponding to the requested interface and multicast address, if present, is changed to contain the requested filter mode and source list. If no such entry is present, a new entry is created, using the parameters specified in the request.
client_index | - opaque cookie to identify the sender |
context | - sender context, to match reply w/ request |
sw_if_index | - interface sw index |
filter | - filter mode |
saddr | - source address |
gaddr | - group address |