Searched refs:hao (Results 1 – 4 of 4) sorted by relevance
153 struct ipv6_destopt_hao *hao; in mip6_destopt_output() local166 hao = mip6_padn((char *)(dstopt + 1), in mip6_destopt_output()169 hao->type = IPV6_TLV_HAO; in mip6_destopt_output()170 BUILD_BUG_ON(sizeof(*hao) != 18); in mip6_destopt_output()171 hao->length = sizeof(*hao) - 2; in mip6_destopt_output()173 len = ((char *)hao - (char *)dstopt) + sizeof(*hao); in mip6_destopt_output()175 memcpy(&hao->addr, &iph->saddr, sizeof(hao->addr)); in mip6_destopt_output()215 struct ipv6_destopt_hao *hao = NULL; in mip6_destopt_reject() local228 hao = (struct ipv6_destopt_hao *) in mip6_destopt_reject()235 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 KERN_DEBUG "hao invalid option length = %d\n", hao->length); in ipv6_dest_hao()201 if (!(ipv6_addr_type(&hao->addr) & IPV6_ADDR_UNICAST)) { in ipv6_dest_hao()203 KERN_DEBUG "hao is not an unicast addr: %pI6\n", &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()