Home
last modified time | relevance | path

Searched refs:xfrm_address_t (Results 1 – 25 of 28) sorted by relevance

12

/Linux-v5.4/net/xfrm/
Dxfrm_hash.h9 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 …]
Dxfrm_state.c59 const xfrm_address_t *daddr, in xfrm_dst_hash()
60 const xfrm_address_t *saddr, in xfrm_dst_hash()
68 const xfrm_address_t *daddr, in xfrm_src_hash()
69 const xfrm_address_t *saddr, in xfrm_src_hash()
76 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, in xfrm_spi_hash()
891 const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_init_tempstate()
928 const xfrm_address_t *daddr, in __xfrm_state_lookup()
953 const xfrm_address_t *daddr, in __xfrm_state_lookup_byaddr()
954 const xfrm_address_t *saddr, in __xfrm_state_lookup_byaddr()
1039 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_state_find()
[all …]
Dxfrm_policy.c61 xfrm_address_t addr;
185 const xfrm_address_t *saddr,
186 const xfrm_address_t *daddr);
251 const xfrm_address_t *saddr, in __xfrm_dst_lookup()
252 const xfrm_address_t *daddr, in __xfrm_dst_lookup()
272 xfrm_address_t *prev_saddr, in xfrm_dst_lookup()
273 xfrm_address_t *prev_daddr, in xfrm_dst_lookup()
277 xfrm_address_t *saddr = &x->props.saddr; in xfrm_dst_lookup()
278 xfrm_address_t *daddr = &x->id.daddr; in xfrm_dst_lookup()
497 const xfrm_address_t *daddr, in policy_hash_direct()
[all …]
Dxfrm_device.c199 xfrm_address_t *saddr; in xfrm_dev_state_add()
200 xfrm_address_t *daddr; in xfrm_dev_state_add()
Dxfrm_user.c96 xfrm_address_t **addrp) in verify_one_addr()
729 xfrm_address_t *saddr = NULL; in xfrm_user_state_lookup()
1311 xfrm_address_t *daddr; in xfrm_alloc_userspi()
1476 sizeof(xfrm_address_t)); in copy_templates()
2570 [XFRMA_SRCADDR] = { .len = sizeof(xfrm_address_t) },
2571 [XFRMA_COADDR] = { .len = sizeof(xfrm_address_t) },
3217 struct xfrm_selector *sel, xfrm_address_t *addr) in build_report()
3242 struct xfrm_selector *sel, xfrm_address_t *addr) in xfrm_send_report()
3263 xfrm_address_t *new_saddr, __be16 new_sport) in build_mapping()
3288 static int xfrm_send_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, in xfrm_send_mapping()
Dxfrm_input.c464 xfrm_address_t *daddr; in xfrm_input()
565 daddr = (xfrm_address_t *)(skb_network_header(skb) + in xfrm_input()
Dxfrm_interface.c418 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in xfrmi4_err()
472 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in xfrmi6_err()
/Linux-v5.4/include/uapi/linux/
Dxfrm.h19 } xfrm_address_t; typedef
26 xfrm_address_t daddr;
50 xfrm_address_t daddr;
51 xfrm_address_t saddr;
239 xfrm_address_t saddr;
253 xfrm_address_t encap_oa;
369 xfrm_address_t saddr;
392 xfrm_address_t daddr;
400 xfrm_address_t saddr;
436 xfrm_address_t saddr;
[all …]
/Linux-v5.4/include/net/
Dxfrm.h178 xfrm_address_t saddr;
198 xfrm_address_t *coaddr;
323 const xfrm_address_t *saddr,
324 const xfrm_address_t *daddr,
327 xfrm_address_t *saddr,
328 xfrm_address_t *daddr,
455 xfrm_address_t saddr;
538 xfrm_address_t local;
539 xfrm_address_t remote;
545 xfrm_address_t old_daddr;
[all …]
/Linux-v5.4/net/ipv6/
Dxfrm6_input.c84 int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, in xfrm6_input_addr()
85 xfrm_address_t *saddr, u8 proto) in xfrm6_input_addr()
104 xfrm_address_t *dst, *src; in xfrm6_input_addr()
114 src = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr()
118 dst = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr()
119 src = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr()
Dxfrm6_tunnel.c47 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()
290 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr); in xfrm6_tunnel_destroy()
Dipcomp6.c59 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()
118 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_attach()
120 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
Dxfrm6_policy.c27 const xfrm_address_t *saddr, in xfrm6_dst_lookup()
28 const xfrm_address_t *daddr, in xfrm6_dst_lookup()
55 xfrm_address_t *saddr, xfrm_address_t *daddr, in xfrm6_get_saddr()
Dmip6.c227 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()
Dip6_vti.c415 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()
603 x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr, in vti6_err()
Dexthdrs.c236 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao()
237 (xfrm_address_t *)&hao->addr, IPPROTO_DSTOPTS); in ipv6_dest_hao()
599 if (xfrm6_input_addr(skb, (xfrm_address_t *)addr, in ipv6_rthdr_rcv()
600 (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in ipv6_rthdr_rcv()
Desp6_offload.c77 (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in esp6_gro_receive()
/Linux-v5.4/net/ipv4/
Dxfrm4_policy.c22 const xfrm_address_t *saddr, in __xfrm4_dst_lookup()
23 const xfrm_address_t *daddr, in __xfrm4_dst_lookup()
46 const xfrm_address_t *saddr, in xfrm4_dst_lookup()
47 const xfrm_address_t *daddr, in xfrm4_dst_lookup()
56 xfrm_address_t *saddr, xfrm_address_t *daddr, in xfrm4_get_saddr()
Dip_vti.c159 xfrm_address_t *daddr = (xfrm_address_t *)&dst; in vti_state_check()
160 xfrm_address_t *saddr = (xfrm_address_t *)&src; in vti_state_check()
335 x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr, in vti4_err()
Dipcomp.c41 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp4_err()
101 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
Desp4_offload.c55 (xfrm_address_t *)&ip_hdr(skb)->daddr, in esp4_gro_receive()
Desp4.c613 xfrm_address_t ipaddr; in esp_input_done2()
806 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in esp4_err()
Dah4.c459 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ah4_err()
/Linux-v5.4/net/key/
Daf_key.c66 xfrm_address_t *saddr, xfrm_address_t *daddr,
631 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract()
650 int pfkey_sadb_addr2xfrm_addr(const struct sadb_address *addr, xfrm_address_t *xaddr) in pfkey_sadb_addr2xfrm_addr()
662 xfrm_address_t *xaddr; in pfkey_xfrm_state_lookup()
680 xaddr = (xfrm_address_t *)&((const struct sockaddr_in *)(addr + 1))->sin_addr; in pfkey_xfrm_state_lookup()
684 xaddr = (xfrm_address_t *)&((const struct sockaddr_in6 *)(addr + 1))->sin6_addr; in pfkey_xfrm_state_lookup()
734 static unsigned int pfkey_sockaddr_fill(const xfrm_address_t *xaddr, __be16 port, in pfkey_sockaddr_fill()
1324 xfrm_address_t *xsaddr = NULL, *xdaddr = NULL; in pfkey_getspi()
1350 xdaddr = (xfrm_address_t *)&((struct sockaddr_in *)(daddr + 1))->sin_addr.s_addr; in pfkey_getspi()
1351 xsaddr = (xfrm_address_t *)&((struct sockaddr_in *)(saddr + 1))->sin_addr.s_addr; in pfkey_getspi()
[all …]
/Linux-v5.4/Documentation/networking/
Dxfrm_sync.txt50 xfrm_address_t saddr;

12