Home
last modified time | relevance | path

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

/Linux-v5.4/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 …]
/Linux-v5.4/net/xfrm/
Dxfrm_state.c535 if (x->lft.hard_add_expires_seconds) { in xfrm_timer_handler()
536 long tmo = x->lft.hard_add_expires_seconds + in xfrm_timer_handler()
545 tmo = x->lft.hard_add_expires_seconds - x->saved_tmo; in xfrm_timer_handler()
552 if (x->lft.hard_use_expires_seconds) { in xfrm_timer_handler()
553 long tmo = x->lft.hard_use_expires_seconds + in xfrm_timer_handler()
562 if (x->lft.soft_add_expires_seconds) { in xfrm_timer_handler()
563 long tmo = x->lft.soft_add_expires_seconds + in xfrm_timer_handler()
574 if (x->lft.soft_use_expires_seconds) { in xfrm_timer_handler()
575 long tmo = x->lft.soft_use_expires_seconds + in xfrm_timer_handler()
629 x->lft.soft_byte_limit = XFRM_INF; in xfrm_state_alloc()
[all …]
Dxfrm_user.c497 memcpy(&x->lft, &p->lft, sizeof(x->lft)); in copy_from_user_state()
791 memcpy(&p->lft, &x->lft, sizeof(p->lft)); in copy_to_user_state()
1588 memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); in copy_from_user_policy()
1599 memcpy(&p->lft, &xp->lft, sizeof(p->lft)); in copy_to_user_policy()
Dxfrm_policy.c325 if (xp->lft.hard_add_expires_seconds) { in xfrm_policy_timer()
326 time64_t tmo = xp->lft.hard_add_expires_seconds + in xfrm_policy_timer()
333 if (xp->lft.hard_use_expires_seconds) { in xfrm_policy_timer()
334 time64_t tmo = xp->lft.hard_use_expires_seconds + in xfrm_policy_timer()
341 if (xp->lft.soft_add_expires_seconds) { in xfrm_policy_timer()
342 time64_t tmo = xp->lft.soft_add_expires_seconds + in xfrm_policy_timer()
351 if (xp->lft.soft_use_expires_seconds) { in xfrm_policy_timer()
352 time64_t tmo = xp->lft.soft_use_expires_seconds + in xfrm_policy_timer()
2302 newp->lft = old->lft; in clone_policy()
/Linux-v5.4/include/uapi/linux/
Dxfrm.h370 struct xfrm_lifetime_cfg lft; member
413 struct xfrm_lifetime_cfg lft; member
/Linux-v5.4/tools/testing/selftests/net/
Drtnetlink.sh255 lft=$(((RANDOM%3) + 1))
256 ip addr add 10.23.11.$i/32 dev "$devdummy" preferred_lft $lft valid_lft $((lft+1))
/Linux-v5.4/include/net/
Dxfrm.h185 struct xfrm_lifetime_cfg lft; member
516 struct xfrm_lifetime_cfg lft; member