Home
last modified time | relevance | path

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

/linux-4.4.14/net/xfrm/
Dxfrm_hash.h8 static inline unsigned int __xfrm4_addr_hash(const xfrm_address_t *addr) in __xfrm4_addr_hash()
13 static inline unsigned int __xfrm6_addr_hash(const xfrm_address_t *addr) in __xfrm6_addr_hash()
18 static inline unsigned int __xfrm4_daddr_saddr_hash(const xfrm_address_t *daddr, in __xfrm4_daddr_saddr_hash()
19 const xfrm_address_t *saddr) in __xfrm4_daddr_saddr_hash()
25 static inline unsigned int __xfrm6_daddr_saddr_hash(const xfrm_address_t *daddr, in __xfrm6_daddr_saddr_hash()
26 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.c41 const xfrm_address_t *daddr, in xfrm_dst_hash()
42 const xfrm_address_t *saddr, in xfrm_dst_hash()
50 const xfrm_address_t *daddr, in xfrm_src_hash()
51 const xfrm_address_t *saddr, in xfrm_src_hash()
58 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr, in xfrm_spi_hash()
635 const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_init_tempstate()
655 const xfrm_address_t *daddr, in __xfrm_state_lookup()
679 const xfrm_address_t *daddr, in __xfrm_state_lookup_byaddr()
680 const xfrm_address_t *saddr, in __xfrm_state_lookup_byaddr()
764 xfrm_state_find(const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_state_find()
[all …]
Dxfrm_policy.c120 const xfrm_address_t *saddr, in __xfrm_dst_lookup()
121 const xfrm_address_t *daddr, in __xfrm_dst_lookup()
140 xfrm_address_t *prev_saddr, in xfrm_dst_lookup()
141 xfrm_address_t *prev_daddr, in xfrm_dst_lookup()
145 xfrm_address_t *saddr = &x->props.saddr; in xfrm_dst_lookup()
146 xfrm_address_t *daddr = &x->id.daddr; in xfrm_dst_lookup()
394 const xfrm_address_t *daddr, in policy_hash_direct()
395 const xfrm_address_t *saddr, in policy_hash_direct()
1097 const xfrm_address_t *daddr, *saddr; in xfrm_policy_lookup_bytype()
1398 xfrm_get_saddr(struct net *net, int oif, xfrm_address_t *local, in xfrm_get_saddr()
[all …]
Dxfrm_input.c189 xfrm_address_t *daddr; in xfrm_input()
205 daddr = (xfrm_address_t *)(skb_network_header(skb) + in xfrm_input()
Dxfrm_user.c95 xfrm_address_t **addrp) in verify_one_addr()
668 xfrm_address_t *saddr = NULL; in xfrm_user_state_lookup()
1202 xfrm_address_t *daddr; in xfrm_alloc_userspi()
1356 sizeof(xfrm_address_t)); in copy_templates()
2391 [XFRMA_SRCADDR] = { .len = sizeof(xfrm_address_t) },
2392 [XFRMA_COADDR] = { .len = sizeof(xfrm_address_t) },
3006 struct xfrm_selector *sel, xfrm_address_t *addr) in build_report()
3031 struct xfrm_selector *sel, xfrm_address_t *addr) in xfrm_send_report()
3051 xfrm_address_t *new_saddr, __be16 new_sport) in build_mapping()
3076 static int xfrm_send_mapping(struct xfrm_state *x, xfrm_address_t *ipaddr, in xfrm_send_mapping()
/linux-4.4.14/include/uapi/linux/
Dxfrm.h18 } xfrm_address_t; typedef
25 xfrm_address_t daddr;
49 xfrm_address_t daddr;
50 xfrm_address_t saddr;
238 xfrm_address_t saddr;
252 xfrm_address_t encap_oa;
362 xfrm_address_t saddr;
385 xfrm_address_t daddr;
393 xfrm_address_t saddr;
429 xfrm_address_t saddr;
[all …]
/linux-4.4.14/include/net/
Dxfrm.h158 xfrm_address_t saddr;
177 xfrm_address_t *coaddr;
290 const xfrm_address_t *saddr,
291 const xfrm_address_t *daddr);
293 xfrm_address_t *saddr,
294 xfrm_address_t *daddr);
332 const xfrm_address_t *daddr,
333 const xfrm_address_t *saddr);
481 xfrm_address_t saddr;
560 xfrm_address_t local;
[all …]
/linux-4.4.14/net/ipv6/
Dxfrm6_input.c58 int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, in xfrm6_input_addr()
59 xfrm_address_t *saddr, u8 proto) in xfrm6_input_addr()
85 xfrm_address_t *dst, *src; in xfrm6_input_addr()
95 src = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr()
99 dst = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr()
100 src = (xfrm_address_t *)&in6addr_any; in xfrm6_input_addr()
Dxfrm6_tunnel.c60 xfrm_address_t addr;
70 static inline unsigned int xfrm6_tunnel_spi_hash_byaddr(const xfrm_address_t *addr) in xfrm6_tunnel_spi_hash_byaddr()
87 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *sa… in __xfrm6_tunnel_spi_lookup()
102 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr) in xfrm6_tunnel_spi_lookup()
130 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in __xfrm6_tunnel_alloc_spi()
173 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_alloc_spi()
197 static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr) in xfrm6_tunnel_free_spi()
238 spi = xfrm6_tunnel_spi_lookup(net, (const xfrm_address_t *)&iph->saddr); in xfrm6_tunnel_rcv()
300 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)&x->props.saddr); in xfrm6_tunnel_destroy()
Dipcomp6.c71 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp6_err()
95 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_create()
129 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr); in ipcomp6_tunnel_attach()
131 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr, in ipcomp6_tunnel_attach()
Dxfrm6_policy.c31 const xfrm_address_t *saddr, in xfrm6_dst_lookup()
32 const xfrm_address_t *daddr) in xfrm6_dst_lookup()
57 xfrm_address_t *saddr, xfrm_address_t *daddr) in xfrm6_get_saddr()
Dxfrm6_state.c45 const xfrm_address_t *daddr, const xfrm_address_t *saddr) in xfrm6_init_temprop()
Dmip6.c239 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in mip6_destopt_reject()
242 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in mip6_destopt_reject()
256 (hao ? (xfrm_address_t *)&hao->addr : NULL)); in mip6_destopt_reject()
Dexthdrs.c207 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr, in ipv6_dest_hao()
208 (xfrm_address_t *)&hao->addr, IPPROTO_DSTOPTS); in ipv6_dest_hao()
416 if (xfrm6_input_addr(skb, (xfrm_address_t *)addr, in ipv6_rthdr_rcv()
417 (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in ipv6_rthdr_rcv()
Dip6_vti.c404 xfrm_address_t *daddr = (xfrm_address_t *)dst; in vti6_state_check()
405 xfrm_address_t *saddr = (xfrm_address_t *)src; in vti6_state_check()
594 x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr, in vti6_err()
Desp6.c471 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in esp6_err()
Dah6.c660 …x = xfrm_state_lookup(net, skb->mark, (xfrm_address_t *)&iph->daddr, ah->spi, IPPROTO_AH, AF_INET6… in ah6_err()
/linux-4.4.14/net/ipv4/
Dxfrm4_policy.c24 const xfrm_address_t *saddr, in __xfrm4_dst_lookup()
25 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()
55 xfrm_address_t *saddr, xfrm_address_t *daddr) in xfrm4_get_saddr()
Dxfrm4_state.c44 const xfrm_address_t *daddr, const xfrm_address_t *saddr) in xfrm4_init_temprop()
Dip_vti.c133 xfrm_address_t *daddr = (xfrm_address_t *)&dst; in vti_state_check()
134 xfrm_address_t *saddr = (xfrm_address_t *)&src; in vti_state_check()
293 x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr, in vti4_err()
Dipcomp.c45 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ipcomp4_err()
105 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4, in ipcomp_tunnel_attach()
Desp4.c337 xfrm_address_t ipaddr; in esp_input_done2()
529 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in esp4_err()
Dah4.c450 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr, in ah4_err()
/linux-4.4.14/net/key/
Daf_key.c588 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract()
607 int pfkey_sadb_addr2xfrm_addr(const struct sadb_address *addr, xfrm_address_t *xaddr) in pfkey_sadb_addr2xfrm_addr()
619 xfrm_address_t *xaddr; in pfkey_xfrm_state_lookup()
637 xaddr = (xfrm_address_t *)&((const struct sockaddr_in *)(addr + 1))->sin_addr; in pfkey_xfrm_state_lookup()
641 xaddr = (xfrm_address_t *)&((const struct sockaddr_in6 *)(addr + 1))->sin6_addr; in pfkey_xfrm_state_lookup()
691 static unsigned int pfkey_sockaddr_fill(const xfrm_address_t *xaddr, __be16 port, in pfkey_sockaddr_fill()
1283 xfrm_address_t *xsaddr = NULL, *xdaddr = NULL; in pfkey_getspi()
1309 xdaddr = (xfrm_address_t *)&((struct sockaddr_in *)(daddr + 1))->sin_addr.s_addr; in pfkey_getspi()
1310 xsaddr = (xfrm_address_t *)&((struct sockaddr_in *)(saddr + 1))->sin_addr.s_addr; in pfkey_getspi()
1314 xdaddr = (xfrm_address_t *)&((struct sockaddr_in6 *)(daddr + 1))->sin6_addr; in pfkey_getspi()
[all …]
/linux-4.4.14/Documentation/networking/
Dxfrm_sync.txt50 xfrm_address_t saddr;
/linux-4.4.14/net/core/
Dpktgen.c2338 (xfrm_address_t *)&pkt_dev->cur_daddr, in get_ipsec_sa()
2339 (xfrm_address_t *)&pkt_dev->cur_saddr, in get_ipsec_sa()