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
1.9 Routing API 55
(
) The interface-local scope was previously called node-local, which was renamed in
[RFC3513]. Unfortunately, the standard API does not catch up to this change, so portable
applications need to keep using the old terminology.
Listing 1-2
route.c
571 case AF_INET6:
572 {
573 struct sockaddr_in6 *sa6 = (struct sockaddr_in6 *)sa;
574 struct in6_addr *in6 = &sa6->sin6_addr;
575
576 /*
577 * XXX: This is a special workaround for KAME kernels.
578 * sin6_scope_id field of SA should be set in the future.
579 */
580 if (IN6_IS_ADDR_LINKLOCAL(in6) ||
581 IN6_IS_ADDR_MC_LINKLOCAL(in6) ||
582 IN6_IS_ADDR_MC_NODELOCAL(in6)) {
583 /* XXX: override is
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