Searched refs:rth (Results 1 – 2 of 2) sorted by relevance
998 struct ip6_rthdr *rth; in icmp6_notify_error() local1040 IP6_EXTHDR_CHECK(m, 0, eoff + sizeof(*rth), in icmp6_notify_error()1042 rth = (struct ip6_rthdr *) in icmp6_notify_error()1045 IP6_EXTHDR_GET(rth, struct ip6_rthdr *, m, in icmp6_notify_error()1046 eoff, sizeof(*rth)); in icmp6_notify_error()1047 if (rth == NULL) { in icmp6_notify_error()1052 rthlen = (rth->ip6r_len + 1) << 3; in icmp6_notify_error()1061 if (rth->ip6r_segleft && in icmp6_notify_error()1062 rth->ip6r_type == IPV6_RTHDR_TYPE_0) { in icmp6_notify_error()1085 nxt = rth->ip6r_nxt; in icmp6_notify_error()
3965 struct ip6_rthdr *rth; in ip6_setpktopt() local3977 rth = (struct ip6_rthdr *)(void *)buf; in ip6_setpktopt()3978 rthlen = (rth->ip6r_len + 1) << 3; in ip6_setpktopt()3983 switch (rth->ip6r_type) { in ip6_setpktopt()3985 if (rth->ip6r_len == 0) { /* must contain one addr */ in ip6_setpktopt()3988 if (rth->ip6r_len % 2) { /* length must be even */ in ip6_setpktopt()3991 if (rth->ip6r_len / 2 != rth->ip6r_segleft) { in ip6_setpktopt()4005 bcopy(rth, opt->ip6po_rthdr, rthlen); in ip6_setpktopt()