Searched refs:xfrm_address_t (Results 1 - 25 of 30) sorted by relevance

12

/linux-master/net/xfrm/
H A Dxfrm_hash.h9 static inline unsigned int __xfrm4_addr_hash(const xfrm_address_t *addr)
14 static inline unsigned int __xfrm6_addr_hash(const xfrm_address_t *addr)
19 static inline unsigned int __xfrm4_daddr_saddr_hash(const xfrm_address_t *daddr,
20 const xfrm_address_t *saddr)
26 static inline unsigned int __xfrm6_daddr_saddr_hash(const xfrm_address_t *daddr,
27 const xfrm_address_t *saddr)
44 static inline unsigned int __xfrm4_dpref_spref_hash(const xfrm_address_t *daddr,
45 const xfrm_address_t *saddr,
54 static inline unsigned int __xfrm6_pref_hash(const xfrm_address_t *addr,
75 static inline unsigned int __xfrm6_dpref_spref_hash(const xfrm_address_t *dadd
[all...]
H A Dxfrm_state_bpf.c39 xfrm_address_t daddr;
H A Dxfrm_state.c59 const xfrm_address_t *daddr,
60 const xfrm_address_t *saddr,
68 const xfrm_address_t *daddr,
69 const xfrm_address_t *saddr,
76 xfrm_spi_hash(struct net *net, const xfrm_address_t *daddr,
941 const xfrm_address_t *daddr, const xfrm_address_t *saddr,
978 const xfrm_address_t *daddr,
1021 const xfrm_address_t *daddr,
1046 const xfrm_address_t *dadd
[all...]
H A Dxfrm_compat.c35 xfrm_address_t saddr;
47 xfrm_address_t saddr;
116 [XFRMA_SRCADDR] = { .len = sizeof(xfrm_address_t) },
117 [XFRMA_COADDR] = { .len = sizeof(xfrm_address_t) },
H A Dxfrm_policy.c67 xfrm_address_t addr;
205 const xfrm_address_t *saddr,
206 const xfrm_address_t *daddr);
271 const xfrm_address_t *saddr,
272 const xfrm_address_t *daddr,
292 xfrm_address_t *prev_saddr,
293 xfrm_address_t *prev_daddr,
297 xfrm_address_t *saddr = &x->props.saddr;
298 xfrm_address_t *daddr = &x->id.daddr;
520 const xfrm_address_t *dadd
[all...]
H A Dxfrm_device.c241 xfrm_address_t *saddr;
242 xfrm_address_t *daddr;
H A Dxfrm_interface_core.c626 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
680 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
1011 const xfrm_address_t *saddr;
1014 saddr = (const xfrm_address_t *)&ipv6_hdr(skb)->saddr;
H A Dxfrm_user.c106 xfrm_address_t **addrp)
841 xfrm_address_t *saddr = NULL;
1272 * will be used to compare xfrm_address_t
1274 if (filter->splen > (sizeof(xfrm_address_t) << 3) ||
1275 filter->dplen > (sizeof(xfrm_address_t) << 3)) {
1576 xfrm_address_t *daddr;
1767 sizeof(xfrm_address_t));
3036 [XFRMA_SRCADDR] = { .len = sizeof(xfrm_address_t) },
3037 [XFRMA_COADDR] = { .len = sizeof(xfrm_address_t) },
3728 struct xfrm_selector *sel, xfrm_address_t *add
[all...]
H A Dxfrm_input.c456 xfrm_address_t *daddr;
555 daddr = (xfrm_address_t *)(skb_network_header(skb) +
/linux-master/include/uapi/linux/
H A Dxfrm.h20 } xfrm_address_t; typedef in typeref:union:__anon2139
27 xfrm_address_t daddr;
51 xfrm_address_t daddr;
52 xfrm_address_t saddr;
245 xfrm_address_t saddr;
259 xfrm_address_t encap_oa;
298 XFRMA_SRCADDR, /* xfrm_address_t */
299 XFRMA_COADDR, /* xfrm_address_t */
376 xfrm_address_t saddr;
400 xfrm_address_t dadd
[all...]
/linux-master/include/net/
H A Dxfrm.h207 xfrm_address_t saddr;
233 xfrm_address_t *coaddr;
351 const xfrm_address_t *saddr,
352 const xfrm_address_t *daddr,
355 xfrm_address_t *saddr,
356 xfrm_address_t *daddr,
477 xfrm_address_t saddr;
562 xfrm_address_t local;
563 xfrm_address_t remote;
569 xfrm_address_t old_dadd
[all...]
/linux-master/net/ipv6/
H A Dxfrm6_tunnel.c42 * per xfrm_address_t.
47 xfrm_address_t addr;
57 static inline unsigned int xfrm6_tunnel_spi_hash_byaddr(const xfrm_address_t *addr)
74 static struct xfrm6_tunnel_spi *__xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr)
89 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr)
117 static u32 __xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr)
163 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr)
187 static void xfrm6_tunnel_free_spi(struct net *net, xfrm_address_t *saddr)
228 spi = xfrm6_tunnel_spi_lookup(net, (const xfrm_address_t *)&iph->saddr);
294 xfrm6_tunnel_free_spi(net, (xfrm_address_t *)
[all...]
H A Dxfrm6_input.c239 int xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr,
240 xfrm_address_t *saddr, u8 proto)
259 xfrm_address_t *dst, *src;
269 src = (xfrm_address_t *)&in6addr_any;
273 dst = (xfrm_address_t *)&in6addr_any;
274 src = (xfrm_address_t *)&in6addr_any;
H A Dipcomp6.c59 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
84 t->id.spi = xfrm6_tunnel_alloc_spi(net, (xfrm_address_t *)&x->props.saddr);
119 spi = xfrm6_tunnel_spi_lookup(net, (xfrm_address_t *)&x->props.saddr);
121 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr,
H A Dxfrm6_policy.c27 const xfrm_address_t *saddr,
28 const xfrm_address_t *daddr,
54 xfrm_address_t *saddr, xfrm_address_t *daddr,
H A Dmip6.c227 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr,
230 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr,
244 (hao ? (xfrm_address_t *)&hao->addr : NULL));
H A Dip6_vti.c420 xfrm_address_t *daddr = (xfrm_address_t *)dst;
421 xfrm_address_t *saddr = (xfrm_address_t *)src;
639 x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr,
1225 const xfrm_address_t *saddr;
1228 saddr = (const xfrm_address_t *)&ipv6_hdr(skb)->saddr;
H A Dexthdrs.c262 ret = xfrm6_input_addr(skb, (xfrm_address_t *)&ipv6h->daddr,
263 (xfrm_address_t *)&hao->addr, IPPROTO_DSTOPTS);
779 if (xfrm6_input_addr(skb, (xfrm_address_t *)addr,
780 (xfrm_address_t *)&ipv6_hdr(skb)->saddr,
H A Desp6_offload.c84 (xfrm_address_t *)&ipv6_hdr(skb)->daddr,
/linux-master/net/ipv4/
H A Dxfrm4_policy.c22 const xfrm_address_t *saddr,
23 const xfrm_address_t *daddr,
44 const xfrm_address_t *saddr,
45 const xfrm_address_t *daddr,
54 xfrm_address_t *saddr, xfrm_address_t *daddr,
H A Dipcomp.c42 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
103 t = xfrm_state_lookup(net, mark, (xfrm_address_t *)&x->id.daddr.a4,
H A Dip_vti.c147 xfrm_address_t *daddr = (xfrm_address_t *)&dst;
148 xfrm_address_t *saddr = (xfrm_address_t *)&src;
361 x = xfrm_state_lookup(net, mark, (const xfrm_address_t *)&iph->daddr,
H A Desp4_offload.c57 (xfrm_address_t *)&ip_hdr(skb)->daddr,
H A Dah4.c457 x = xfrm_state_lookup(net, skb->mark, (const xfrm_address_t *)&iph->daddr,
/linux-master/net/key/
H A Daf_key.c66 xfrm_address_t *saddr, xfrm_address_t *daddr,
627 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr)
646 int pfkey_sadb_addr2xfrm_addr(const struct sadb_address *addr, xfrm_address_t *xaddr)
658 xfrm_address_t *xaddr;
676 xaddr = (xfrm_address_t *)&((const struct sockaddr_in *)(addr + 1))->sin_addr;
680 xaddr = (xfrm_address_t *)&((const struct sockaddr_in6 *)(addr + 1))->sin6_addr;
730 static unsigned int pfkey_sockaddr_fill(const xfrm_address_t *xaddr, __be16 port,
1319 xfrm_address_t *xsaddr = NULL, *xdaddr = NULL;
1345 xdaddr = (xfrm_address_t *)
[all...]

Completed in 231 milliseconds

12