Lines Matching refs:rt2
342 struct rt2_hdr *rt2 = (struct rt2_hdr *)skb->data; in mip6_rthdr_input() local
343 int err = rt2->rt_hdr.nexthdr; in mip6_rthdr_input()
360 struct rt2_hdr *rt2; in mip6_rthdr_output() local
369 rt2 = (struct rt2_hdr *)skb_transport_header(skb); in mip6_rthdr_output()
370 rt2->rt_hdr.nexthdr = nexthdr; in mip6_rthdr_output()
371 rt2->rt_hdr.hdrlen = (x->props.header_len >> 3) - 1; in mip6_rthdr_output()
372 rt2->rt_hdr.type = IPV6_SRCRT_TYPE_2; in mip6_rthdr_output()
373 rt2->rt_hdr.segments_left = 1; in mip6_rthdr_output()
374 memset(&rt2->reserved, 0, sizeof(rt2->reserved)); in mip6_rthdr_output()
376 WARN_ON(rt2->rt_hdr.hdrlen != 2); in mip6_rthdr_output()
378 memcpy(&rt2->addr, &iph->daddr, sizeof(rt2->addr)); in mip6_rthdr_output()