| /linux-6.15/net/xfrm/ |
| H A D | xfrm_hash.h | 9 static inline unsigned int __xfrm4_addr_hash(const xfrm_address_t *addr) in __xfrm4_addr_hash() 14 static inline unsigned int __xfrm6_addr_hash(const xfrm_address_t *addr) in __xfrm6_addr_hash() 20 const xfrm_address_t *saddr) in __xfrm4_daddr_saddr_hash() 27 const xfrm_address_t *saddr) in __xfrm6_daddr_saddr_hash() 45 const xfrm_address_t *saddr, in __xfrm4_dpref_spref_hash() 76 const xfrm_address_t *saddr, in __xfrm6_dpref_spref_hash() 85 const xfrm_address_t *saddr, in __xfrm_dst_hash() 102 const xfrm_address_t *saddr, in __xfrm_src_hash() 150 const xfrm_address_t *daddr = &sel->daddr; in __sel_hash() 151 const xfrm_address_t *saddr = &sel->saddr; in __sel_hash() [all …]
|
| H A D | xfrm_state.c | 62 const xfrm_address_t *daddr, in xfrm_dst_hash() 63 const xfrm_address_t *saddr, in xfrm_dst_hash() 73 const xfrm_address_t *daddr, in xfrm_src_hash() 74 const xfrm_address_t *saddr, in xfrm_src_hash() 1080 const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_init_tempstate() 1139 const xfrm_address_t *daddr, in __xfrm_state_lookup_all() 1361 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_state_find() 1660 xfrm_address_t *daddr, xfrm_address_t *saddr, in xfrm_stateonly_find() 1799 const xfrm_address_t *daddr, in __find_acq_core() 1800 const xfrm_address_t *saddr, in __find_acq_core() [all …]
|
| H A D | xfrm_policy.c | 68 xfrm_address_t addr; 208 const xfrm_address_t *saddr, 293 xfrm_address_t *prev_saddr, in xfrm_dst_lookup() 294 xfrm_address_t *prev_daddr, in xfrm_dst_lookup() 809 const xfrm_address_t *addr; in xfrm_policy_inexact_insert_use_any_list() 847 const xfrm_address_t *b, in xfrm_policy_addr_delta() 1044 xfrm_address_t *addr, in xfrm_policy_inexact_insert_node() 2494 xfrm_address_t tmp; in xfrm_tmpl_resolve_one() 2498 xfrm_address_t *remote = daddr; in xfrm_tmpl_resolve_one() 2499 xfrm_address_t *local = saddr; in xfrm_tmpl_resolve_one() [all …]
|
| H A D | xfrm_state_bpf.c | 39 xfrm_address_t daddr;
|
| H A D | xfrm_compat.c | 35 xfrm_address_t saddr; 47 xfrm_address_t saddr; 117 [XFRMA_SRCADDR] = { .len = sizeof(xfrm_address_t) }, 118 [XFRMA_COADDR] = { .len = sizeof(xfrm_address_t) },
|
| H A D | xfrm_nat_keepalive.c | 20 xfrm_address_t saddr; 21 xfrm_address_t daddr;
|
| H A D | xfrm_device.c | 243 xfrm_address_t *saddr; in xfrm_dev_state_add() 244 xfrm_address_t *daddr; in xfrm_dev_state_add()
|
| H A D | xfrm_interface_core.c | 625 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in xfrmi4_err() 679 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in xfrmi6_err() 1012 const xfrm_address_t *saddr; in xfrmi6_rcv_tunnel() 1015 saddr = (const xfrm_address_t *)&ipv6_hdr(skb)->saddr; in xfrmi6_rcv_tunnel()
|
| H A D | xfrm_user.c | 106 xfrm_address_t **addrp) in verify_one_addr() 1032 xfrm_address_t *saddr = NULL; in xfrm_user_state_lookup() 1488 if (filter->splen > (sizeof(xfrm_address_t) << 3) || in xfrm_dump_sa() 1489 filter->dplen > (sizeof(xfrm_address_t) << 3)) { in xfrm_dump_sa() 1790 xfrm_address_t *daddr; in xfrm_alloc_userspi() 1993 sizeof(xfrm_address_t)); in copy_templates() 3284 [XFRMA_SRCADDR] = { .len = sizeof(xfrm_address_t) }, 3285 [XFRMA_COADDR] = { .len = sizeof(xfrm_address_t) }, 4050 struct xfrm_selector *sel, xfrm_address_t *addr) in build_report() 4075 struct xfrm_selector *sel, xfrm_address_t *addr) in xfrm_send_report() [all …]
|
| H A D | xfrm_input.c | 471 xfrm_address_t *daddr; in xfrm_input() 575 daddr = (xfrm_address_t *)(skb_network_header(skb) + in xfrm_input()
|
| /linux-6.15/include/uapi/linux/ |
| H A D | xfrm.h | 20 } xfrm_address_t; typedef 27 xfrm_address_t daddr; 51 xfrm_address_t daddr; 52 xfrm_address_t saddr; 251 xfrm_address_t saddr; 265 xfrm_address_t encap_oa; 391 xfrm_address_t saddr; 415 xfrm_address_t daddr; 423 xfrm_address_t saddr; 460 xfrm_address_t saddr; [all …]
|
| /linux-6.15/include/net/ |
| H A D | xfrm.h | 215 xfrm_address_t saddr; 245 xfrm_address_t *coaddr; 364 xfrm_address_t *saddr; 365 xfrm_address_t *daddr; 546 xfrm_address_t saddr; 670 xfrm_address_t old_daddr; 671 xfrm_address_t old_saddr; 1459 xfrm_address_t *saddr, xfrm_address_t *daddr, in xfrm_flowi_addr_get() 1476 const xfrm_address_t *daddr, const xfrm_address_t *saddr) in __xfrm4_state_addr_check() 1486 const xfrm_address_t *daddr, const xfrm_address_t *saddr) in __xfrm6_state_addr_check() [all …]
|
| /linux-6.15/net/ipv6/ |
| H A D | xfrm6_tunnel.c | 47 xfrm_address_t addr; 57 static inline unsigned int xfrm6_tunnel_spi_hash_byaddr(const xfrm_address_t *addr) in xfrm6_tunnel_spi_hash_byaddr() 74 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *sa… in __xfrm6_tunnel_spi_lookup() 89 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup() 117 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi() 163 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi() 187 static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_free_spi() 228 spi = xfrm6_tunnel_spi_lookup(net, (const xfrm_address_t *)&iph->saddr); in xfrm6_tunnel_rcv() 294 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr); in xfrm6_tunnel_destroy()
|
| H A D | xfrm6_input.c | 232 int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, in xfrm6_input_addr() 233 xfrm_address_t *saddr, u8 proto) in xfrm6_input_addr() 252 xfrm_address_t *dst, *src; in xfrm6_input_addr() 262 src = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr() 266 dst = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr() 267 src = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr()
|
| H A D | ipcomp6.c | 59 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp6_err() 84 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_create() 119 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_attach() 121 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
|
| H A D | mip6.c | 227 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in mip6_destopt_reject() 230 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in mip6_destopt_reject() 244 (hao ? (xfrm_address_t *)&hao->addr : NULL)); in mip6_destopt_reject()
|
| H A D | ip6_vti.c | 415 xfrm_address_t *daddr = (xfrm_address_t *)dst; in vti6_state_check() 416 xfrm_address_t *saddr = (xfrm_address_t *)src; in vti6_state_check() 634 x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr, in vti6_err() 1220 const xfrm_address_t *saddr; in vti6_rcv_tunnel() 1223 saddr = (const xfrm_address_t *)&ipv6_hdr(skb)->saddr; in vti6_rcv_tunnel()
|
| H A D | exthdrs.c | 262 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao() 263 (xfrm_address_t *)&hao->addr, IPPROTO_DSTOPTS); in ipv6_dest_hao() 779 if (xfrm6_input_addr(skb, (xfrm_address_t *)addr, in ipv6_rthdr_rcv() 780 (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in ipv6_rthdr_rcv()
|
| H A D | xfrm6_policy.c | 54 static int xfrm6_get_saddr(xfrm_address_t *saddr, in xfrm6_get_saddr()
|
| H A D | esp6_offload.c | 84 (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in esp6_gro_receive()
|
| /linux-6.15/net/ipv4/ |
| H A D | ipcomp.c | 42 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp4_err() 103 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
|
| H A D | ip_vti.c | 150 xfrm_address_t *daddr = (xfrm_address_t *)&dst; in vti_state_check() 151 xfrm_address_t *saddr = (xfrm_address_t *)&src; in vti_state_check() 367 x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr, in vti4_err()
|
| H A D | xfrm4_policy.c | 51 static int xfrm4_get_saddr(xfrm_address_t *saddr, in xfrm4_get_saddr()
|
| H A D | esp4_offload.c | 57 (xfrm_address_t *)&ip_hdr(skb)->daddr, in esp4_gro_receive()
|
| /linux-6.15/net/key/ |
| H A D | af_key.c | 66 xfrm_address_t *saddr, xfrm_address_t *daddr, 627 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract() 658 xfrm_address_t *xaddr; in pfkey_xfrm_state_lookup() 1319 xfrm_address_t *xsaddr = NULL, *xdaddr = NULL; in pfkey_getspi() 1350 xdaddr = (xfrm_address_t *)&((struct sockaddr_in6 *)(daddr + 1))->sin6_addr; in pfkey_getspi() 1852 (sizeof(xfrm_address_t) << 3)) || in pfkey_dump() 1854 (sizeof(xfrm_address_t) << 3))) { in pfkey_dump() 1865 sizeof(xfrm_address_t)); in pfkey_dump() 1867 sizeof(xfrm_address_t)); in pfkey_dump() 2474 xfrm_address_t *saddr, xfrm_address_t *daddr, in parse_sockaddr_pair() [all …]
|