Lines Matching refs:rt2
354 struct rt2_hdr *rt2 = (struct rt2_hdr *)skb->data; in mip6_rthdr_input() local
355 int err = rt2->rt_hdr.nexthdr; in mip6_rthdr_input()
372 struct rt2_hdr *rt2; in mip6_rthdr_output() local
381 rt2 = (struct rt2_hdr *)skb_transport_header(skb); in mip6_rthdr_output()
382 rt2->rt_hdr.nexthdr = nexthdr; in mip6_rthdr_output()
383 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; in mip6_rthdr_output()
384 rt2->rt_hdr.type = IPV6_SRCRT_TYPE_2; in mip6_rthdr_output()
385 rt2->rt_hdr.segments_left = 1; in mip6_rthdr_output()
386 memset(&rt2->reserved, 0, sizeof(rt2->reserved)); in mip6_rthdr_output()
388 WARN_ON(rt2->rt_hdr.hdrlen != 2); in mip6_rthdr_output()
390 memcpy(&rt2->addr, &iph->daddr, sizeof(rt2->addr)); in mip6_rthdr_output()