ip6.7p (2010 09)

i
IPv6(7P) IPv6(7P)
joined, and must be in "exclude" mode. The multicast address, interface
index, and source address are specified using
struct
group_source_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_JOIN_SOURCE_GROUP
(struct group_source_req
) Adds a source address to the list of
allowed sources for a multicast group in "include" mode, joining the
group in "include" mode if not already joined. The multicast address,
interface index, and source address are specified using
struct
group_source_req
. If the interface index is specified as 0 then the
default multicast interface is used.
MCAST_LEAVE_SOURCE_GROUP
(struct group_source_req
) Removes a source address from the list
of allowed sources for a multicast group in "include" mode, leaving the
group if the last source is being removed. The multicast address, inter-
face index, and source address are specified using
struct
group_source_req
. If the interface index is specified as 0 then the
default multicast interface is used.
IPV6_CHECKSUM (integer) When this option is set, kernel computes the checksum for
outbound packets and verifies checksum on inbound packets. The option
value is the byte offset of the checksum location in the user data. This
option is not valid for IPPROTO_ICMPV6
since checksum computation is
mandatory for
IPPROTO_ICMPV6
. The default value is -1 (checksums
not computed nor verified for protocols other than
IPPROTO_ICMPV6
).
IPV6_RECVPKTINFO
(boolean) When this option is enabled, PKTINFO (destination IPv6
address and the arriving interface index) is returned as ancillary data by
recvmsg(). (See recvmsg (2).) The information is returned in struct
in6_pktinfo structure and it is defined in <netinet/in6.h
> as:
struct in6_pktinfo {
struct in6_addr ipi6_addr;
uint32_t ipi6_ifindex;
};
By default this option is disabled.
IPV6_RECVHOPLIMIT
(boolean) When this option is enabled, inbound packet’s hoplimit is
returned as ancillary data by
recvmsg(). For example,
int on = 1;
setsockopt(s, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
&on, sizeof(on));
By default this option is disabled.
IPV6_RECVTCLASS (boolean) When this option is enabled, inbound packet’s traffic class is
returned as ancillary data by recvmsg(). For example,
int on = 1;
setsockopt(s, IPPROTO_IPV6, IPV6_RECVTCLASS,
&on, sizeof(on));
By default this option is disabled.
IPV6_RECVDSTOPTS (boolean) When this option is enabled, the inbound packet’s destina-
tion options (when present) is returned as ancillary data by
recvmsg(). By default this option is disabled.
IPV6_RECVHOPOPTS (boolean) When this option is enabled, the inbound packet’s hop-by-
hop options (when present) is returned as ancillary data by recvmsg().
By default this option is disabled.
IPV6_RECVRTHDR (integer; boolean) When this option is enabled, the inbound
packet’s routing options (when present) is returned as ancillary data by
recvmsg(). By default this option is disabled.
4 Hewlett-Packard Company 4 HP-UX 11i Version 3: September 2010