Searched refs:rth (Results 1 – 2 of 2) sorted by relevance
| /xnu-12377.61.12/bsd/netinet6/ |
| H A D | icmp6.c | 1003 struct ip6_rthdr *__single rth; in icmp6_notify_error() local 1045 IP6_EXTHDR_CHECK(m, 0, eoff + sizeof(*rth), in icmp6_notify_error() 1047 rth = (struct ip6_rthdr *) in icmp6_notify_error() 1050 IP6_EXTHDR_GET(rth, struct ip6_rthdr *, m, in icmp6_notify_error() 1051 eoff, sizeof(*rth)); in icmp6_notify_error() 1052 if (rth == NULL) { in icmp6_notify_error() 1057 rthlen = (rth->ip6r_len + 1) << 3; in icmp6_notify_error() 1066 if (rth->ip6r_segleft && in icmp6_notify_error() 1067 rth->ip6r_type == IPV6_RTHDR_TYPE_0) { in icmp6_notify_error() 1090 nxt = rth->ip6r_nxt; in icmp6_notify_error()
|
| H A D | ip6_output.c | 4069 struct ip6_rthdr *rth, *trth = NULL; in ip6_setpktopt() local 4081 rth = (struct ip6_rthdr *)(void *)buf; in ip6_setpktopt() 4082 rthlen = (rth->ip6r_len + 1) << 3; in ip6_setpktopt() 4087 switch (rth->ip6r_type) { in ip6_setpktopt() 4089 if (rth->ip6r_len == 0) { /* must contain one addr */ in ip6_setpktopt() 4092 if (rth->ip6r_len % 2) { /* length must be even */ in ip6_setpktopt() 4095 if (rth->ip6r_len / 2 != rth->ip6r_segleft) { in ip6_setpktopt() 4110 bcopy(rth, trth, rthlen); in ip6_setpktopt()
|