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
264 Chapter 3—DNS for IPv6
1537 }
1538 hp = getanswer(buf, n, qbuf, T_PTR, &hbuf, errp);
1539 if (!hp)
1540 continue;
1541 hbuf.h_addrtype = af;
1542 hbuf.h_length = addrlen;
1543 hbuf.h_addr_list = hlist;
1544 hlist[0] = (char *)addr;
1545 hlist[1] = NULL;
1546 return _hpcopy(&hbuf, errp);
1547 }
name6.c
1534–1536 If res_query() fails for some reason, it should return a negative value and
h_errno should have an error code. The error code is temporarily stored in *errp,
and the next top-level domain will be tried, if any.
One common error here is “host not found,” which corresponds to the Name Error
code of the DNS. In this case, h_errno should have been set ...
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