Searched refs:hao (Results 1 – 4 of 4) sorted by relevance
154 struct ipv6_destopt_hao *hao; in mip6_destopt_output() local167 hao = mip6_padn((char *)(dstopt + 1), in mip6_destopt_output()170 hao->type = IPV6_TLV_HAO; in mip6_destopt_output()171 BUILD_BUG_ON(sizeof(*hao) != 18); in mip6_destopt_output()172 hao->length = sizeof(*hao) - 2; in mip6_destopt_output()174 len = ((char *)hao - (char *)dstopt) + sizeof(*hao); in mip6_destopt_output()176 memcpy(&hao->addr, &iph->saddr, sizeof(hao->addr)); in mip6_destopt_output()214 struct ipv6_destopt_hao *hao = NULL; in mip6_destopt_reject() local227 hao = (struct ipv6_destopt_hao *) in mip6_destopt_reject()234 hao ? &hao->addr : &ipv6_hdr(skb)->saddr, in mip6_destopt_reject()[all …]
180 struct ipv6_destopt_hao *hao; in ipv6_dest_hao() local193 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + optoff); in ipv6_dest_hao()195 if (hao->length != 16) { in ipv6_dest_hao()197 hao->length); in ipv6_dest_hao()201 if (!(ipv6_addr_type(&hao->addr) & IPV6_ADDR_UNICAST)) { in ipv6_dest_hao()203 &hao->addr); in ipv6_dest_hao()208 (xfrm_address_t *)&hao->addr, IPPROTO_DSTOPTS); in ipv6_dest_hao()217 hao = (struct ipv6_destopt_hao *)(skb_network_header(skb) + in ipv6_dest_hao()226 ipv6h->saddr = hao->addr; in ipv6_dest_hao()227 hao->addr = tmp_addr; in ipv6_dest_hao()
190 struct ipv6_destopt_hao *hao; in ipv6_rearrange_destopt() local192 hao = (struct ipv6_destopt_hao *)&opt[off]; in ipv6_rearrange_destopt()193 if (hao->length != sizeof(hao->addr)) { in ipv6_rearrange_destopt()195 hao->length); in ipv6_rearrange_destopt()198 final_addr = hao->addr; in ipv6_rearrange_destopt()199 hao->addr = iph->saddr; in ipv6_rearrange_destopt()
305 struct ipv6_destopt_hao *hao; in mip6_addr_swap() local312 hao = (struct ipv6_destopt_hao *) in mip6_addr_swap()315 iph->saddr = hao->addr; in mip6_addr_swap()316 hao->addr = tmp; in mip6_addr_swap()