Lines Matching refs:t2

74 				    uint32_t t1, uint32_t t2,  in dhcvp6_update_deadlines()  argument
85 if (t1 == 0 && t2 == 0) { in dhcvp6_update_deadlines()
88 t2 = DHCPV6_INFINITY; in dhcvp6_update_deadlines()
91 t2 = preferred_lifetime * 0.8; in dhcvp6_update_deadlines()
94 if (t2 == DHCPV6_INFINITY) { in dhcvp6_update_deadlines()
97 t1 = t2 * 0.625; /* 0.5 / 0.8 */ in dhcvp6_update_deadlines()
99 } else if (t2 == 0) { in dhcvp6_update_deadlines()
101 t2 = DHCPV6_INFINITY; in dhcvp6_update_deadlines()
103 t2 = t1 * 1.6; /* 0.8 / 0.5 */ in dhcvp6_update_deadlines()
105 if (t2 < t1) { in dhcvp6_update_deadlines()
106 t2 = DHCPV6_INFINITY; in dhcvp6_update_deadlines()
109 } else if (t1 >= t2) { in dhcvp6_update_deadlines()
110 NET_ERR("Invalid T1(%u)/T2(%u) values.", t1, t2); in dhcvp6_update_deadlines()
119 if (t2 == DHCPV6_INFINITY || in dhcvp6_update_deadlines()
120 u64_add_overflow(now, 1000ULL * t2, &t2_abs)) { in dhcvp6_update_deadlines()
133 if (iface->config.dhcpv6.t2 > t2_abs) { in dhcvp6_update_deadlines()
134 iface->config.dhcpv6.t2 = t2_abs; in dhcvp6_update_deadlines()
313 ret = net_pkt_write_be32(pkt, ia_na->t2); in dhcpv6_add_option_ia_na()
373 ret = net_pkt_write_be32(pkt, ia_pd->t2); in dhcpv6_add_option_ia_pd()
933 ret = net_pkt_read_be32(pkt, &ia_na->t2); in dhcpv6_parse_option_ia_na()
943 if (ia_na->t1 != 0 && ia_na->t2 != 0 && ia_na->t1 > ia_na->t2) { in dhcpv6_parse_option_ia_na()
947 NET_DBG("iaid %d t1 %d t2 %d", ia_na->iaid, ia_na->t1, ia_na->t2); in dhcpv6_parse_option_ia_na()
1109 ret = net_pkt_read_be32(pkt, &ia_pd->t2); in dhcpv6_parse_option_ia_pd()
1119 if (ia_pd->t1 != 0 && ia_pd->t2 != 0 && ia_pd->t1 > ia_pd->t2) { in dhcpv6_parse_option_ia_pd()
1123 NET_DBG("iaid %d t1 %d t2 %d", ia_pd->iaid, ia_pd->t1, ia_pd->t2); in dhcpv6_parse_option_ia_pd()
1676 iface->config.dhcpv6.t2 = UINT64_MAX; in dhcpv6_handle_reply()
1705 dhcvp6_update_deadlines(iface, now, ia_na.t1, ia_na.t2, in dhcpv6_handle_reply()
1752 dhcvp6_update_deadlines(iface, now, ia_pd.t1, ia_pd.t2, in dhcpv6_handle_reply()
1992 if (now >= iface->config.dhcpv6.t2) { in dhcpv6_manage_timers()
2006 if (iface->config.dhcpv6.timeout > iface->config.dhcpv6.t2) { in dhcpv6_manage_timers()
2007 iface->config.dhcpv6.timeout = iface->config.dhcpv6.t2; in dhcpv6_manage_timers()