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
3.4 Implementation of IPv6 DNS Resolver 231
FIGURE 3-14
name
qclass
qtype
answer
anslen
n
res_target{}
IN
AAAA
next
HEADER
HFIXEDSZ
anslen
= MAXPACKET
= 64KB
querybuf{}
n
Relationship between the res_target{} structur e and the querybuf{} union.
Initialization
Listing 3-6
getaddrinfo.c
4455 static int
4456 _dns_getaddrinfo(pai, hostname, res)
4457 const struct addrinfo *pai;
4458 const char *hostname;
4459 struct addrinfo **res;
4460 {
4461 struct addrinfo *ai;
4462 querybuf *buf, *buf2;
4463 const char *name;
4464 struct addrinfo sentinel, *cur;
4465 struct res_target q, q2;
4466
4467 memset(&q, 0, sizeof(q2));
4468 memset(&q2, 0, sizeof(q2));
4469 memset(&sentinel, 0, sizeof(sentinel)); ...
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