/linux-6.12.1/net/xfrm/ |
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() 19 static inline unsigned int __xfrm4_daddr_saddr_hash(const xfrm_address_t *daddr, in __xfrm4_daddr_saddr_hash() 20 const xfrm_address_t *saddr) in __xfrm4_daddr_saddr_hash() 26 static inline unsigned int __xfrm6_daddr_saddr_hash(const xfrm_address_t *daddr, in __xfrm6_daddr_saddr_hash() 27 const xfrm_address_t *saddr) in __xfrm6_daddr_saddr_hash() 44 static inline unsigned int __xfrm4_dpref_spref_hash(const xfrm_address_t *daddr, in __xfrm4_dpref_spref_hash() 45 const xfrm_address_t *saddr, in __xfrm4_dpref_spref_hash() 54 static inline unsigned int __xfrm6_pref_hash(const xfrm_address_t *addr, in __xfrm6_pref_hash() 75 static inline unsigned int __xfrm6_dpref_spref_hash(const xfrm_address_t *daddr, in __xfrm6_dpref_spref_hash() [all …]
|
D | xfrm_state.c | 60 const xfrm_address_t *daddr, in xfrm_dst_hash() 61 const xfrm_address_t *saddr, in xfrm_dst_hash() 69 const xfrm_address_t *daddr, in xfrm_src_hash() 70 const xfrm_address_t *saddr, in xfrm_src_hash() 77 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, in xfrm_spi_hash() 1000 const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_init_tempstate() 1037 const xfrm_address_t *daddr, in __xfrm_state_lookup_all() 1080 const xfrm_address_t *daddr, in __xfrm_state_lookup() 1105 const xfrm_address_t *daddr, in __xfrm_state_lookup_byaddr() 1106 const xfrm_address_t *saddr, in __xfrm_state_lookup_byaddr() [all …]
|
D | xfrm_policy.c | 68 xfrm_address_t addr; 208 const xfrm_address_t *saddr, 209 const xfrm_address_t *daddr); 293 xfrm_address_t *prev_saddr, in xfrm_dst_lookup() 294 xfrm_address_t *prev_daddr, in xfrm_dst_lookup() 299 xfrm_address_t *saddr = &x->props.saddr; in xfrm_dst_lookup() 300 xfrm_address_t *daddr = &x->id.daddr; in xfrm_dst_lookup() 545 const xfrm_address_t *daddr, in policy_hash_direct() 546 const xfrm_address_t *saddr, in policy_hash_direct() 780 static bool xfrm_pol_inexact_addr_use_any_list(const xfrm_address_t *addr, in xfrm_pol_inexact_addr_use_any_list() [all …]
|
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) },
|
D | xfrm_state_bpf.c | 39 xfrm_address_t daddr;
|
D | xfrm_nat_keepalive.c | 20 xfrm_address_t saddr; 21 xfrm_address_t daddr;
|
D | xfrm_interface_core.c | 626 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in xfrmi4_err() 680 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in xfrmi6_err() 1011 const xfrm_address_t *saddr; in xfrmi6_rcv_tunnel() 1014 saddr = (const xfrm_address_t *)&ipv6_hdr(skb)->saddr; in xfrmi6_rcv_tunnel()
|
D | xfrm_device.c | 241 xfrm_address_t *saddr; in xfrm_dev_state_add() 242 xfrm_address_t *daddr; in xfrm_dev_state_add()
|
D | xfrm_user.c | 106 xfrm_address_t **addrp) in verify_one_addr() 948 xfrm_address_t *saddr = NULL; in xfrm_user_state_lookup() 1395 if (filter->splen > (sizeof(xfrm_address_t) << 3) || in xfrm_dump_sa() 1396 filter->dplen > (sizeof(xfrm_address_t) << 3)) { in xfrm_dump_sa() 1697 xfrm_address_t *daddr; in xfrm_alloc_userspi() 1891 sizeof(xfrm_address_t)); in copy_templates() 3167 [XFRMA_SRCADDR] = { .len = sizeof(xfrm_address_t) }, 3168 [XFRMA_COADDR] = { .len = sizeof(xfrm_address_t) }, 3898 struct xfrm_selector *sel, xfrm_address_t *addr) in build_report() 3923 struct xfrm_selector *sel, xfrm_address_t *addr) in xfrm_send_report() [all …]
|
D | xfrm_input.c | 464 xfrm_address_t *daddr; in xfrm_input() 564 daddr = (xfrm_address_t *)(skb_network_header(skb) + in xfrm_input()
|
/linux-6.12.1/include/uapi/linux/ |
D | xfrm.h | 20 } xfrm_address_t; typedef 27 xfrm_address_t daddr; 51 xfrm_address_t daddr; 52 xfrm_address_t saddr; 250 xfrm_address_t saddr; 264 xfrm_address_t encap_oa; 383 xfrm_address_t saddr; 407 xfrm_address_t daddr; 415 xfrm_address_t saddr; 451 xfrm_address_t saddr; [all …]
|
/linux-6.12.1/include/net/ |
D | xfrm.h | 210 xfrm_address_t saddr; 240 xfrm_address_t *coaddr; 356 xfrm_address_t *saddr; 357 xfrm_address_t *daddr; 369 int (*get_saddr)(xfrm_address_t *saddr, 490 xfrm_address_t saddr; 604 xfrm_address_t local; 605 xfrm_address_t remote; 611 xfrm_address_t old_daddr; 612 xfrm_address_t old_saddr; [all …]
|
/linux-6.12.1/net/ipv6/ |
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()
|
D | xfrm6_input.c | 230 int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, in xfrm6_input_addr() 231 xfrm_address_t *saddr, u8 proto) in xfrm6_input_addr() 250 xfrm_address_t *dst, *src; in xfrm6_input_addr() 260 src = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr() 264 dst = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr() 265 src = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr()
|
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()
|
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()
|
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() 1217 const xfrm_address_t *saddr; in vti6_rcv_tunnel() 1220 saddr = (const xfrm_address_t *)&ipv6_hdr(skb)->saddr; in vti6_rcv_tunnel()
|
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()
|
D | xfrm6_policy.c | 54 static int xfrm6_get_saddr(xfrm_address_t *saddr, in xfrm6_get_saddr()
|
D | esp6_offload.c | 84 (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in esp6_gro_receive()
|
/linux-6.12.1/net/ipv4/ |
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()
|
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()
|
D | xfrm4_policy.c | 50 static int xfrm4_get_saddr(xfrm_address_t *saddr, in xfrm4_get_saddr()
|
D | esp4_offload.c | 57 (xfrm_address_t *)&ip_hdr(skb)->daddr, in esp4_gro_receive()
|
/linux-6.12.1/net/key/ |
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() 646 int pfkey_sadb_addr2xfrm_addr(const struct sadb_address *addr, xfrm_address_t *xaddr) in pfkey_sadb_addr2xfrm_addr() 658 xfrm_address_t *xaddr; in pfkey_xfrm_state_lookup() 676 xaddr = (xfrm_address_t *)&((const struct sockaddr_in *)(addr + 1))->sin_addr; in pfkey_xfrm_state_lookup() 680 xaddr = (xfrm_address_t *)&((const struct sockaddr_in6 *)(addr + 1))->sin6_addr; in pfkey_xfrm_state_lookup() 730 static unsigned int pfkey_sockaddr_fill(const xfrm_address_t *xaddr, __be16 port, in pfkey_sockaddr_fill() 1319 xfrm_address_t *xsaddr = NULL, *xdaddr = NULL; in pfkey_getspi() 1345 xdaddr = (xfrm_address_t *)&((struct sockaddr_in *)(daddr + 1))->sin_addr.s_addr; in pfkey_getspi() 1346 xsaddr = (xfrm_address_t *)&((struct sockaddr_in *)(saddr + 1))->sin_addr.s_addr; in pfkey_getspi() [all …]
|