Home
last modified time | relevance | path

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

/Linux-v4.19/net/key/
Daf_key.c904 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.hard_packet_limit); in __pfkey_xfrm_state2msg()
905 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.hard_byte_limit); in __pfkey_xfrm_state2msg()
906 lifetime->sadb_lifetime_addtime = x->lft.hard_add_expires_seconds; in __pfkey_xfrm_state2msg()
907 lifetime->sadb_lifetime_usetime = x->lft.hard_use_expires_seconds; in __pfkey_xfrm_state2msg()
915 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.soft_packet_limit); in __pfkey_xfrm_state2msg()
916 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.soft_byte_limit); in __pfkey_xfrm_state2msg()
917 lifetime->sadb_lifetime_addtime = x->lft.soft_add_expires_seconds; in __pfkey_xfrm_state2msg()
918 lifetime->sadb_lifetime_usetime = x->lft.soft_use_expires_seconds; in __pfkey_xfrm_state2msg()
1159 x->lft.hard_packet_limit = _KEY2X(lifetime->sadb_lifetime_allocations); in pfkey_msg2xfrm_state()
1160 x->lft.hard_byte_limit = _KEY2X(lifetime->sadb_lifetime_bytes); in pfkey_msg2xfrm_state()
[all …]
/Linux-v4.19/net/xfrm/
Dxfrm_state.c488 if (x->lft.hard_add_expires_seconds) { in xfrm_timer_handler()
489 long tmo = x->lft.hard_add_expires_seconds + in xfrm_timer_handler()
498 tmo = x->lft.hard_add_expires_seconds - x->saved_tmo; in xfrm_timer_handler()
505 if (x->lft.hard_use_expires_seconds) { in xfrm_timer_handler()
506 long tmo = x->lft.hard_use_expires_seconds + in xfrm_timer_handler()
515 if (x->lft.soft_add_expires_seconds) { in xfrm_timer_handler()
516 long tmo = x->lft.soft_add_expires_seconds + in xfrm_timer_handler()
527 if (x->lft.soft_use_expires_seconds) { in xfrm_timer_handler()
528 long tmo = x->lft.soft_use_expires_seconds + in xfrm_timer_handler()
581 x->lft.soft_byte_limit = XFRM_INF; in xfrm_state_alloc()
[all …]
Dxfrm_user.c477 memcpy(&x->lft, &p->lft, sizeof(x->lft)); in copy_from_user_state()
771 memcpy(&p->lft, &x->lft, sizeof(p->lft)); in copy_to_user_state()
1575 memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); in copy_from_user_policy()
1586 memcpy(&p->lft, &xp->lft, sizeof(p->lft)); in copy_to_user_policy()
Dxfrm_policy.c204 if (xp->lft.hard_add_expires_seconds) { in xfrm_policy_timer()
205 time64_t tmo = xp->lft.hard_add_expires_seconds + in xfrm_policy_timer()
212 if (xp->lft.hard_use_expires_seconds) { in xfrm_policy_timer()
213 time64_t tmo = xp->lft.hard_use_expires_seconds + in xfrm_policy_timer()
220 if (xp->lft.soft_add_expires_seconds) { in xfrm_policy_timer()
221 time64_t tmo = xp->lft.soft_add_expires_seconds + in xfrm_policy_timer()
230 if (xp->lft.soft_use_expires_seconds) { in xfrm_policy_timer()
231 time64_t tmo = xp->lft.soft_use_expires_seconds + in xfrm_policy_timer()
1324 newp->lft = old->lft; in clone_policy()
/Linux-v4.19/include/uapi/linux/
Dxfrm.h370 struct xfrm_lifetime_cfg lft; member
413 struct xfrm_lifetime_cfg lft; member
/Linux-v4.19/include/net/
Dxfrm.h174 struct xfrm_lifetime_cfg lft; member
588 struct xfrm_lifetime_cfg lft; member