函数源码 |
Source File:include\net\xfrm.h |
Create Date:2022-07-27 20:44:13 |
首页 | Copyright©Brick |
1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 | static __inline__ int __xfrm6_state_addr_check( const struct xfrm_state *x, const xfrm_address_t *daddr, const xfrm_address_t *saddr) { if (ipv6_addr_equal(( struct in6_addr *)daddr, ( struct in6_addr *)&x->id.daddr) && (ipv6_addr_equal(( struct in6_addr *)saddr, ( struct in6_addr *)&x->props.saddr) || ipv6_addr_any(( struct in6_addr *)saddr) || ipv6_addr_any(( struct in6_addr *)&x->props.saddr))) return 1; return 0; } |