Lines Matching refs:saddr
178 xfrm_address_t saddr; member
323 const xfrm_address_t *saddr,
327 xfrm_address_t *saddr,
455 xfrm_address_t saddr; member
1062 return (tmpl->saddr.a4 && in __xfrm4_state_addr_cmp()
1063 tmpl->saddr.a4 != x->props.saddr.a4); in __xfrm4_state_addr_cmp()
1069 return (!ipv6_addr_any((struct in6_addr*)&tmpl->saddr) && in __xfrm6_state_addr_cmp()
1070 !ipv6_addr_equal((struct in6_addr *)&tmpl->saddr, (struct in6_addr*)&x->props.saddr)); in __xfrm6_state_addr_cmp()
1250 return (xfrm_address_t *)&fl->u.ip4.saddr; in xfrm_flowi_saddr()
1252 return (xfrm_address_t *)&fl->u.ip6.saddr; in xfrm_flowi_saddr()
1259 xfrm_address_t *saddr, xfrm_address_t *daddr, in xfrm_flowi_addr_get() argument
1264 memcpy(&saddr->a4, &fl->u.ip4.saddr, sizeof(saddr->a4)); in xfrm_flowi_addr_get()
1268 saddr->in6 = fl->u.ip6.saddr; in xfrm_flowi_addr_get()
1276 const xfrm_address_t *daddr, const xfrm_address_t *saddr) in __xfrm4_state_addr_check() argument
1279 (saddr->a4 == x->props.saddr.a4 || !saddr->a4 || !x->props.saddr.a4)) in __xfrm4_state_addr_check()
1286 const xfrm_address_t *daddr, const xfrm_address_t *saddr) in __xfrm6_state_addr_check() argument
1289 (ipv6_addr_equal((struct in6_addr *)saddr, (struct in6_addr *)&x->props.saddr) || in __xfrm6_state_addr_check()
1290 ipv6_addr_any((struct in6_addr *)saddr) || in __xfrm6_state_addr_check()
1291 ipv6_addr_any((struct in6_addr *)&x->props.saddr))) in __xfrm6_state_addr_check()
1298 const xfrm_address_t *daddr, const xfrm_address_t *saddr, in xfrm_state_addr_check() argument
1303 return __xfrm4_state_addr_check(x, daddr, saddr); in xfrm_state_addr_check()
1305 return __xfrm6_state_addr_check(x, daddr, saddr); in xfrm_state_addr_check()
1318 (const xfrm_address_t *)&fl->u.ip4.saddr); in xfrm_state_addr_flow_check()
1322 (const xfrm_address_t *)&fl->u.ip6.saddr); in xfrm_state_addr_flow_check()
1479 const xfrm_address_t *saddr,
1486 xfrm_address_t *saddr,
1500 const xfrm_address_t *saddr,
1593 xfrm_address_t *saddr, u8 proto);
1599 __be32 xfrm6_tunnel_alloc_spi(struct net *net, xfrm_address_t *saddr);
1600 __be32 xfrm6_tunnel_spi_lookup(struct net *net, const xfrm_address_t *saddr);
1626 const xfrm_address_t *saddr,
1653 const xfrm_address_t *saddr, int create,