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
392 Chapter 4—DHCPv6
Validation
Listing 4-84
dhcp6s.c
954 static int
955 process_relayforw(dh6p, optendp, relayinfohead, from)
956 struct dhcp6 **dh6p;
957 struct dhcp6opt **optendp;
958 struct relayinfolist *relayinfohead;
959 struct sockaddr *from;
960 {
961 struct dhcp6_relay *dh6relay = (struct dhcp6_relay *)*dh6p;
962 struct dhcp6opt *optend = *optendp;
963 struct relayinfo *relayinfo;
964 struct dhcp6_optinfo optinfo;
965 int len;
966
967 again:
968 len = (void *)optend - (void *)dh6relay;
969 if (len < sizeof (*dh6relay)) {
970 dprintf(LOG_INFO, FNAME, "short relay message from %s",
971 addr2str(from));
972 return (-1);
973 }
974 dprintf(LOG_DEBUG, FNAME,
975 ...
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