| 1154 | } |
| 1155 | |
| 1156 | static int |
| 1157 | in6_init_prefix_ltimes(struct nd_prefix *ndpr) |
| 1158 | { |
| 1159 | if (ndpr->ndpr_pltime == ND6_INFINITE_LIFETIME) |
| 1160 | ndpr->ndpr_preferred = 0; |
| 1161 | else |
| 1162 | ndpr->ndpr_preferred = time_uptime + ndpr->ndpr_pltime; |
| 1163 | if (ndpr->ndpr_vltime == ND6_INFINITE_LIFETIME) |
| 1164 | ndpr->ndpr_expire = 0; |
| 1165 | else |
| 1166 | ndpr->ndpr_expire = time_uptime + ndpr->ndpr_vltime; |
| 1167 | |
| 1168 | return 0; |
| 1169 | } |
| 1170 | |
| 1171 | static void |
| 1172 | in6_init_address_ltimes(struct nd_prefix *new, struct in6_addrlifetime *lt6) |
no outgoing calls
no test coverage detected