Home
last modified time | relevance | path

Searched refs:hao (Results 1 – 4 of 4) sorted by relevance

/net/ipv6/
Dmip6.c142 struct ipv6_destopt_hao *hao; in mip6_destopt_output() local
155 hao = mip6_padn((char *)(dstopt + 1), in mip6_destopt_output()
158 hao->type = IPV6_TLV_HAO; in mip6_destopt_output()
159 BUILD_BUG_ON(sizeof(*hao) != 18); in mip6_destopt_output()
160 hao->length = sizeof(*hao) - 2; in mip6_destopt_output()
162 len = ((char *)hao - (char *)dstopt) + sizeof(*hao); in mip6_destopt_output()
164 memcpy(&hao->addr, &iph->saddr, sizeof(hao->addr)); in mip6_destopt_output()
202 struct ipv6_destopt_hao *hao = NULL; in mip6_destopt_reject() local
215 hao = (struct ipv6_destopt_hao *) in mip6_destopt_reject()
222 hao ? &hao->addr : &ipv6_hdr(skb)->saddr, in mip6_destopt_reject()
[all …]
Dexthdrs.c210 struct ipv6_destopt_hao *hao; in ipv6_dest_hao() local
222 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + optoff); in ipv6_dest_hao()
224 if (hao->length != 16) { in ipv6_dest_hao()
226 hao->length); in ipv6_dest_hao()
230 if (!(ipv6_addr_type(&hao->addr) & IPV6_ADDR_UNICAST)) { in ipv6_dest_hao()
232 &hao->addr); in ipv6_dest_hao()
237 (xfrm_address_t *)&hao->addr, IPPROTO_DSTOPTS); in ipv6_dest_hao()
246 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + in ipv6_dest_hao()
254 swap(ipv6h->saddr, hao->addr); in ipv6_dest_hao()
Dah6.c179 struct ipv6_destopt_hao *hao; in ipv6_rearrange_destopt() local
181 hao = (struct ipv6_destopt_hao *)&opt[off]; in ipv6_rearrange_destopt()
182 if (hao->length != sizeof(hao->addr)) { in ipv6_rearrange_destopt()
184 hao->length); in ipv6_rearrange_destopt()
187 final_addr = hao->addr; in ipv6_rearrange_destopt()
188 hao->addr = iph->saddr; in ipv6_rearrange_destopt()
Dicmp.c313 struct ipv6_destopt_hao *hao; in mip6_addr_swap() local
320 hao = (struct ipv6_destopt_hao *) in mip6_addr_swap()
323 iph->saddr = hao->addr; in mip6_addr_swap()
324 hao->addr = tmp; in mip6_addr_swap()