
148 Chapter 2—IPv6 Multicasting
Listing 2-13
mld6.c
1039 mldh->mld_addr = in6m->in6m_sa.sin6_addr;
1040 in6_clearscope(&mldh->mld_addr); /* XXX */
1041
1042 mldh->mld_cksum = in6_cksum(mh, IPPROTO_ICMPV6, sizeof(struct ip6_hdr),
1043 MLD_MINLEN);
1044
1045 /* construct multicast option */
1046 bzero(&im6o, sizeof(im6o));
1047 im6o.im6o_multicast_ifp = ifp;
1048 im6o.im6o_multicast_hlim = 1;
1049
1050 /*
1051 * Request loopback of the report if we are acting as a multicast
1052 * router, so that the process-level routing daemon can hear it.
1053 */
1054 im6o.im6o_multicast_loop = (ip6_mrouter != NULL);
mld6.c
Complete the Packet
1039–1043 The Multicast Address