Searched refs:rth (Results 1 – 2 of 2) sorted by relevance
| /xnu-11215.1.10/bsd/netinet6/ |
| H A D | icmp6.c | 1001 struct ip6_rthdr *__single rth; in icmp6_notify_error() local 1043 IP6_EXTHDR_CHECK(m, 0, eoff + sizeof(*rth), in icmp6_notify_error() 1045 rth = (struct ip6_rthdr *) in icmp6_notify_error() 1048 IP6_EXTHDR_GET(rth, struct ip6_rthdr *, m, in icmp6_notify_error() 1049 eoff, sizeof(*rth)); in icmp6_notify_error() 1050 if (rth == NULL) { in icmp6_notify_error() 1055 rthlen = (rth->ip6r_len + 1) << 3; in icmp6_notify_error() 1064 if (rth->ip6r_segleft && in icmp6_notify_error() 1065 rth->ip6r_type == IPV6_RTHDR_TYPE_0) { in icmp6_notify_error() 1088 nxt = rth->ip6r_nxt; in icmp6_notify_error()
|
| H A D | ip6_output.c | 4022 struct ip6_rthdr *rth, *trth = NULL; in ip6_setpktopt() local 4034 rth = (struct ip6_rthdr *)(void *)buf; in ip6_setpktopt() 4035 rthlen = (rth->ip6r_len + 1) << 3; in ip6_setpktopt() 4040 switch (rth->ip6r_type) { in ip6_setpktopt() 4042 if (rth->ip6r_len == 0) { /* must contain one addr */ in ip6_setpktopt() 4045 if (rth->ip6r_len % 2) { /* length must be even */ in ip6_setpktopt() 4048 if (rth->ip6r_len / 2 != rth->ip6r_segleft) { in ip6_setpktopt() 4063 bcopy(rth, trth, rthlen); in ip6_setpktopt()
|