Skip to Main Content
IPv6 Advanced Protocols Implementation
book

IPv6 Advanced Protocols Implementation

by Qing Li, Jinmei Tatuya, Keiichi Shima
July 2010
Intermediate to advanced content levelIntermediate to advanced
1008 pages
35h 43m
English
Morgan Kaufmann
Content preview from IPv6 Advanced Protocols Implementation
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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

IPv6 Core Protocols Implementation

IPv6 Core Protocols Implementation

Qing Li, Tatuya Jinmei, Keiichi Shima
IPv6 Security

IPv6 Security

Scott Hogg, Eric Vyncke
IPv6 for Enterprise Networks

IPv6 for Enterprise Networks

Shannon McFarland, Muninder Sambi, Nikhil Sharma, Sanjay Hooda
IPv6 Network Programming

IPv6 Network Programming

Jun-ichiro itojun Hagino

Publisher Resources

ISBN: 9780080489308