Home
last modified time | relevance | path

Searched refs:lft (Results 1 – 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/net/key/
Daf_key.c890 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.hard_packet_limit); in __pfkey_xfrm_state2msg()
891 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.hard_byte_limit); in __pfkey_xfrm_state2msg()
892 lifetime->sadb_lifetime_addtime = x->lft.hard_add_expires_seconds; in __pfkey_xfrm_state2msg()
893 lifetime->sadb_lifetime_usetime = x->lft.hard_use_expires_seconds; in __pfkey_xfrm_state2msg()
901 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.soft_packet_limit); in __pfkey_xfrm_state2msg()
902 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.soft_byte_limit); in __pfkey_xfrm_state2msg()
903 lifetime->sadb_lifetime_addtime = x->lft.soft_add_expires_seconds; in __pfkey_xfrm_state2msg()
904 lifetime->sadb_lifetime_usetime = x->lft.soft_use_expires_seconds; in __pfkey_xfrm_state2msg()
1143 x->lft.hard_packet_limit = _KEY2X(lifetime->sadb_lifetime_allocations); in pfkey_msg2xfrm_state()
1144 x->lft.hard_byte_limit = _KEY2X(lifetime->sadb_lifetime_bytes); in pfkey_msg2xfrm_state()
[all …]
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_state.c534 if (x->lft.hard_add_expires_seconds) { in xfrm_timer_handler()
535 long tmo = x->lft.hard_add_expires_seconds + in xfrm_timer_handler()
544 tmo = x->lft.hard_add_expires_seconds - x->saved_tmo; in xfrm_timer_handler()
551 if (x->lft.hard_use_expires_seconds) { in xfrm_timer_handler()
552 long tmo = x->lft.hard_use_expires_seconds + in xfrm_timer_handler()
561 if (x->lft.soft_add_expires_seconds) { in xfrm_timer_handler()
562 long tmo = x->lft.soft_add_expires_seconds + in xfrm_timer_handler()
573 if (x->lft.soft_use_expires_seconds) { in xfrm_timer_handler()
574 long tmo = x->lft.soft_use_expires_seconds + in xfrm_timer_handler()
628 x->lft.soft_byte_limit = XFRM_INF; in xfrm_state_alloc()
[all …]
Dxfrm_user.c502 memcpy(&x->lft, &p->lft, sizeof(x->lft)); in copy_from_user_state()
800 memcpy(&p->lft, &x->lft, sizeof(p->lft)); in copy_to_user_state()
1647 memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); in copy_from_user_policy()
1658 memcpy(&p->lft, &xp->lft, sizeof(p->lft)); in copy_to_user_policy()
Dxfrm_compat.c24 struct compat_xfrm_lifetime_cfg lft; member
35 struct compat_xfrm_lifetime_cfg lft; member
Dxfrm_policy.c329 if (xp->lft.hard_add_expires_seconds) { in xfrm_policy_timer()
330 time64_t tmo = xp->lft.hard_add_expires_seconds + in xfrm_policy_timer()
337 if (xp->lft.hard_use_expires_seconds) { in xfrm_policy_timer()
338 time64_t tmo = xp->lft.hard_use_expires_seconds + in xfrm_policy_timer()
345 if (xp->lft.soft_add_expires_seconds) { in xfrm_policy_timer()
346 time64_t tmo = xp->lft.soft_add_expires_seconds + in xfrm_policy_timer()
355 if (xp->lft.soft_use_expires_seconds) { in xfrm_policy_timer()
356 time64_t tmo = xp->lft.soft_use_expires_seconds + in xfrm_policy_timer()
2306 newp->lft = old->lft; in clone_policy()
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dipsec.c958 req.info.lft.soft_byte_limit = XFRM_INF; in xfrm_state_add()
959 req.info.lft.hard_byte_limit = XFRM_INF; in xfrm_state_add()
960 req.info.lft.soft_packet_limit = XFRM_INF; in xfrm_state_add()
961 req.info.lft.hard_packet_limit = XFRM_INF; in xfrm_state_add()
1001 if (info->lft.soft_byte_limit != XFRM_INF || in xfrm_usersa_found()
1002 info->lft.hard_byte_limit != XFRM_INF || in xfrm_usersa_found()
1003 info->lft.soft_packet_limit != XFRM_INF || in xfrm_usersa_found()
1004 info->lft.hard_packet_limit != XFRM_INF) in xfrm_usersa_found()
1134 req.info.lft.soft_byte_limit = XFRM_INF; in xfrm_policy_add()
1135 req.info.lft.hard_byte_limit = XFRM_INF; in xfrm_policy_add()
[all …]
Drtnetlink.sh254 lft=$(((RANDOM%3) + 1))
255 ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dxfrm.h312 struct xfrm_lifetime_cfg lft; member
351 struct xfrm_lifetime_cfg lft; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dxfrm.h299 struct xfrm_lifetime_cfg lft; member
337 struct xfrm_lifetime_cfg lft; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dxfrm.h376 struct xfrm_lifetime_cfg lft; member
420 struct xfrm_lifetime_cfg lft; member
/kernel/linux/linux-5.10/include/net/
Dxfrm.h187 struct xfrm_lifetime_cfg lft; member
520 struct xfrm_lifetime_cfg lft; member