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.6 Relay Agent Implementation 439
Send Packet
Listing 4-134
dhcp6s.c
2286 /* specify the destination and send the reply */
2287 dst = relayed ? *sa6_any_relay : *sa6_any_downstream;
2288 dst.sin6_addr = ((struct sockaddr_in6 *)from)->sin6_addr;
2289 dst.sin6_scope_id = ((struct sockaddr_in6 *)from)->sin6_scope_id;
2290 if (transmit_sa(outsock, (struct sockaddr *)&dst,
2291 replybuf, len) != 0) {
2292 dprintf(LOG_ERR, FNAME, "transmit %s to %s failed",
2293 dhcp6msgstr(type), addr2str((struct sockaddr *)&dst));
2294 return (-1);
2295 }
2296
2297 dprintf(LOG_DEBUG, FNAME, "transmit %s to %s",
2298 dhcp6msgstr(type), addr2str((struct sockaddr *)&dst));
2299
2300 ...
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