MCPcopy Create free account
hub / github.com/F-Stack/f-stack / in6_init_prefix_ltimes

Function in6_init_prefix_ltimes

freebsd/netinet6/nd6_rtr.c:1156–1169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1154}
1155
1156static int
1157in6_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
1171static void
1172in6_init_address_ltimes(struct nd_prefix *new, struct in6_addrlifetime *lt6)

Callers 2

nd6_prelist_addFunction · 0.85
prelist_updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected