ip6.7p (2010 09)
i
IPv6(7P) IPv6(7P)
by optval is zero (disable) or non-zero (enable). Default: enabled.
IPV6_JOIN_GROUP
(struct ipv6_mreq) Joins a multicast group on a specified local inter-
face. The group is joined in "exclude" mode, with an empty source list.
struct ipv6_mreq is defined in <
netinet/in6.h> as:
struct ipv6_mreq {
struct in6_addr ipv6mr_multiaddr;
uint32_t ipv6mr_interface;
};
The
ipv6mr_interface
field holds the interface index of a local inter-
face, or zero. If the interface index is specified as 0 then the default mul-
ticast interface is used. The
ipv6mr_multiaddr
field holds an IPv6
multicast address or an IPv4 multicast address in IPv4-mapped IPv6
address format.
MCAST_JOIN_GROUP
(struct group_req) Joins a multicast group on a specified local inter-
face. The group is joined in "exclude" mode, with an empty source list.
struct group_req is defined in <
netinet/in.h> as:
struct group_req {
uint32_t gr_interface;
struct sockaddr_storage gr_group;
};
The
gr_interface field holds the interface index of a local interface,
or zero. If the interface index is specified as 0 then the default multicast
interface is used. The gr_group field holds a struct
sockaddr_in6 containing an IPv6 multicast address or an IPv4 multi-
cast address in IPv4-mapped IPv6 address format.
IPV6_LEAVE_GROUP
(struct ipv6_mreq) Leaves a multicast group on a specified local
interface. The multicast address of the group to leave and the interface
index are specified using
struct ipv6_mreq. The interface index
should match the index used while joining the group. If the interface
index is specified as 0 then the default multicast interface is used.
MCAST_LEAVE_GROUP
(struct group_req) Leaves a multicast group on a specified local
interface. The multicast address of the group to leave and the interface
index are specified using
struct group_req. The interface index
should match the index used while joining the group. If the interface
index is specified as 0 then the default multicast interface is used.
MCAST_BLOCK_SOURCE
(struct group_source_req) Adds a source address to the list of
blocked sources for a multicast group. The group must already be joined,
and must be in "exclude" mode.
struct group_source_req
is
defined in <
netinet/in.h> as:
struct group_source_req {
uint32_t gsr_interface;
struct sockaddr_storage gsr_group;
struct sockaddr_storage gsr_source;
};
The
gsr_interface field holds the interface index of a local interface,
or zero. If the interface index is specified as 0 then the default multicast
interface is used. The gsr_group field holds a struct
sockaddr_in6 containing an IPv6 multicast address or an IPv4 multi-
cast address in IPv4-mapped IPv6 address format. The gsr_source
field holds a struct sockaddr_in6 containing an IPv6 source
address or an IPv4 source address in IPv4-mapped IPv6 address format.
The multicast address and the source address must both be native IPv6
addresses, or must both be IPv4-mapped IPv6 addresses.
MCAST_UNBLOCK_SOURCE
(struct group_source_req) Removes a source address from the list
of blocked sources for a multicast group. The group must already be
HP-UX 11i Version 3: September 2010 − 3 − Hewlett-Packard Company 3