Searched refs:rth0 (Results 1 – 2 of 2) sorted by relevance
290 struct ip6_rthdr0 *rth0; in inet6_rth_init() local302 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_init()303 rth0->ip6r0_len = segments * 2; in inet6_rth_init()304 rth0->ip6r0_type = IPV6_RTHDR_TYPE_0; in inet6_rth_init()305 rth0->ip6r0_segleft = 0; in inet6_rth_init()306 rth0->ip6r0_reserved = 0; in inet6_rth_init()319 struct ip6_rthdr0 *rth0; in inet6_rth_add() local324 rth0 = (struct ip6_rthdr0 *)rth; in inet6_rth_add()326 if (rth0->ip6r0_segleft == (rth0->ip6r0_len / 2)) in inet6_rth_add()328 nextaddr = (struct in6_addr *)(rth0 + 1) + rth0->ip6r0_segleft; in inet6_rth_add()[all …]
956 struct ip6_rthdr0 *rth0; in icmp6_notify_error() local1024 rth0 = (struct ip6_rthdr0 *) in icmp6_notify_error()1028 if ((rth0->ip6r0_len % 2) == 0 && in icmp6_notify_error()1029 (hops = rth0->ip6r0_len/2)) in icmp6_notify_error()1030 icmp6dst.sin6_addr = *((struct in6_addr *)(rth0 + 1) + (hops - 1)); in icmp6_notify_error()