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
5.15 Common Mobility Header Processing 585
5.15.6 Mobility Header Message Delivery to Raw Sockets
All Mobility Header messages are delivered to raw sockets. A user space program can receive
Mobility Header messages by opening a raw socket specifying IPPROTO_MH as a protocol. The
delivery to raw sockets is implemented in the mobility6_rip6_input() function.
Listing 5-50
mobility6.c
361 static int
362 mobility6_rip6_input(mp, off)
363 struct mbuf **mp;
364 int off;
365 {
366 struct mbuf *m = *mp;
367 struct ip6_hdr *ip6;
368 struct ip6_mh *mh;
369 struct sockaddr_in6 fromsa;
370 struct in6pcb *in6p;
371 struct in6pcb *last = NULL;
372 struct mbuf *opts = NULL; ...
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