Searched refs:hao (Results 1 – 4 of 4) sorted by relevance
142 struct ipv6_destopt_hao *hao; in mip6_destopt_output() local155 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() local215 hao = (struct ipv6_destopt_hao *) in mip6_destopt_reject()222 hao ? &hao->addr : &ipv6_hdr(skb)->saddr, in mip6_destopt_reject()[all …]
210 struct ipv6_destopt_hao *hao; in ipv6_dest_hao() local222 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()
179 struct ipv6_destopt_hao *hao; in ipv6_rearrange_destopt() local181 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()
313 struct ipv6_destopt_hao *hao; in mip6_addr_swap() local320 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()