Home
last modified time | relevance | path

Searched refs:lifetime (Results 1 – 5 of 5) sorted by relevance

/net/key/
Daf_key.c770 struct sadb_lifetime *lifetime; in __pfkey_xfrm_state2msg() local
883 lifetime = (struct sadb_lifetime *) skb_put(skb, in __pfkey_xfrm_state2msg()
885 lifetime->sadb_lifetime_len = in __pfkey_xfrm_state2msg()
887 lifetime->sadb_lifetime_exttype = SADB_EXT_LIFETIME_HARD; in __pfkey_xfrm_state2msg()
888 lifetime->sadb_lifetime_allocations = _X2KEY(x->lft.hard_packet_limit); in __pfkey_xfrm_state2msg()
889 lifetime->sadb_lifetime_bytes = _X2KEY(x->lft.hard_byte_limit); in __pfkey_xfrm_state2msg()
890 lifetime->sadb_lifetime_addtime = x->lft.hard_add_expires_seconds; in __pfkey_xfrm_state2msg()
891 lifetime->sadb_lifetime_usetime = x->lft.hard_use_expires_seconds; in __pfkey_xfrm_state2msg()
895 lifetime = (struct sadb_lifetime *) skb_put(skb, in __pfkey_xfrm_state2msg()
897 lifetime->sadb_lifetime_len = in __pfkey_xfrm_state2msg()
[all …]
/net/mac80211/
Dmesh_hwmp.c84 __le32 dst_dsn, u8 *da, u8 hop_count, u8 ttl, __le32 lifetime, in mesh_path_sel_frame_tx() argument
139 memcpy(pos, &lifetime, 4); in mesh_path_sel_frame_tx()
406 u32 orig_dsn, dst_dsn, lifetime; in hwmp_preq_frame_process() local
450 lifetime = PREQ_IE_LIFETIME(preq_elem); in hwmp_preq_frame_process()
456 cpu_to_le32(lifetime), cpu_to_le32(metric), in hwmp_preq_frame_process()
467 lifetime = PREQ_IE_LIFETIME(preq_elem); in hwmp_preq_frame_process()
479 hopcount, ttl, cpu_to_le32(lifetime), in hwmp_preq_frame_process()
495 u32 dst_dsn, orig_dsn, lifetime; in hwmp_prep_frame_process() local
528 lifetime = PREP_IE_LIFETIME(prep_elem); in hwmp_prep_frame_process()
537 cpu_to_le32(lifetime), cpu_to_le32(metric), in hwmp_prep_frame_process()
[all …]
/net/ipv6/
Dndisc.c1118 int lifetime; in ndisc_router_discovery() local
1197 lifetime = ntohs(ra_msg->icmph.icmp6_rt_lifetime); in ndisc_router_discovery()
1212 if (rt && lifetime == 0) { in ndisc_router_discovery()
1218 if (rt == NULL && lifetime) { in ndisc_router_discovery()
1246 rt->rt6i_expires = jiffies + (HZ * lifetime); in ndisc_router_discovery()
Droute.c457 unsigned long lifetime; in rt6_route_rcv() local
483 lifetime = addrconf_timeout_fixup(ntohl(rinfo->lifetime), HZ); in rt6_route_rcv()
498 if (rt && !lifetime) { in rt6_route_rcv()
503 if (!rt && lifetime) in rt6_route_rcv()
511 if (!addrconf_finite_timeout(lifetime)) { in rt6_route_rcv()
514 rt->rt6i_expires = jiffies + HZ * lifetime; in rt6_route_rcv()
Daddrconf.c759 unsigned long lifetime; in ipv6_del_addr() local
766 lifetime = addrconf_timeout_fixup(ifa->valid_lft, HZ); in ipv6_del_addr()
773 ifa->tstamp + lifetime * HZ)) in ipv6_del_addr()
774 expires = ifa->tstamp + lifetime * HZ; in ipv6_del_addr()