Lines Matching defs:rthdr
1 /* $NetBSD: rthdr.c,v 1.19 2019/05/29 02:30:42 msaitoh Exp $ */
34 __RCSID("$NetBSD: rthdr.c,v 1.19 2019/05/29 02:30:42 msaitoh Exp $");
87 struct ip6_rthdr *rthdr;
92 rthdr = (struct ip6_rthdr *)(void *)CMSG_DATA(ch);
105 (void)memset(rthdr, 0, sizeof(struct ip6_rthdr0));
106 rthdr->ip6r_type = IPV6_RTHDR_TYPE_0;
116 struct ip6_rthdr *rthdr;
121 rthdr = (struct ip6_rthdr *)(void *)CMSG_DATA(cmsg);
123 switch (rthdr->ip6r_type) {
127 struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)(void *)rthdr;
153 struct ip6_rthdr *rthdr;
157 rthdr = (struct ip6_rthdr *)(void *)CMSG_DATA(cmsg);
159 switch (rthdr->ip6r_type) {
162 struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)(void *)rthdr;
188 const struct ip6_rthdr *rthdr;
192 rthdr = __UNCONST(CCMSG_DATA(cmsg));
194 switch (rthdr->ip6r_type) {
198 (const struct ip6_rthdr0 *)(const void *)rthdr;
217 struct ip6_rthdr *rthdr;
221 rthdr = (struct ip6_rthdr *)(void *)CMSG_DATA(cmsg);
223 switch (rthdr->ip6r_type) {
226 struct ip6_rthdr0 *rt0 = (struct ip6_rthdr0 *)(void *)rthdr;
252 const struct ip6_rthdr *rthdr;
256 rthdr = __UNCONST(CCMSG_DATA(cmsg));
258 switch (rthdr->ip6r_type) {
262 (const void *)rthdr;