Searched refs:rth (Results 1 – 2 of 2) sorted by relevance
969 struct ip6_rthdr *rth; in icmp6_notify_error() local1011 IP6_EXTHDR_CHECK(m, 0, eoff + sizeof(*rth), in icmp6_notify_error()1013 rth = (struct ip6_rthdr *) in icmp6_notify_error()1016 IP6_EXTHDR_GET(rth, struct ip6_rthdr *, m, in icmp6_notify_error()1017 eoff, sizeof(*rth)); in icmp6_notify_error()1018 if (rth == NULL) { in icmp6_notify_error()1023 rthlen = (rth->ip6r_len + 1) << 3; in icmp6_notify_error()1032 if (rth->ip6r_segleft && in icmp6_notify_error()1033 rth->ip6r_type == IPV6_RTHDR_TYPE_0) { in icmp6_notify_error()1056 nxt = rth->ip6r_nxt; in icmp6_notify_error()
3971 struct ip6_rthdr *rth; in ip6_setpktopt() local3983 rth = (struct ip6_rthdr *)(void *)buf; in ip6_setpktopt()3984 rthlen = (rth->ip6r_len + 1) << 3; in ip6_setpktopt()3989 switch (rth->ip6r_type) { in ip6_setpktopt()3991 if (rth->ip6r_len == 0) { /* must contain one addr */ in ip6_setpktopt()3994 if (rth->ip6r_len % 2) { /* length must be even */ in ip6_setpktopt()3997 if (rth->ip6r_len / 2 != rth->ip6r_segleft) { in ip6_setpktopt()4011 bcopy(rth, opt->ip6po_rthdr, rthlen); in ip6_setpktopt()