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
4.5 Server Implementation 387
function is called. Then the server watches the receiving socket (insock) until a message
arrives or a new timer expires. When a new DHCPv6 message arrives, the server6_recv()
function is called to process the message.
The discussions below ignore the operation on the control socket (ctlsock), since it is
not directly relevant to protocol operation.
Listing 4-76
dhcp6s.c
538 static void
539 server6_mainloop()
540 {
541 struct timeval *w;
542 int ret;
543 fd_set r;
544 int maxsock;
545
546
547 while (1) {
548 w = dhcp6_check_timer();
549
550 FD_ZERO(&r);
551 FD_SET(insock, &r);
552 maxsock = insock;
553 if (ctlsock >= 0) {
554 FD_SET(ctlsock, ...
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