Lines Matching refs:prefixes
17 * This file contains the implementation of the omr_watcher_t object, which tracks off-mesh-routable prefixes on the
104 omr_prefix_t *prefixes;
232 for (omr_prefix_t *prefix = omw->prefixes; prefix != NULL; prefix = next) {
272 omr_prefix_t *NULLABLE prefixes, omr_prefix_t *NULLABLE prefix)
278 cb->callback(omw->route_state, cb->context, event_type, prefixes, prefix);
284 omr_watcher_prefix_list_callback(void *context, cti_prefix_vec_t *prefixes, cti_status_t status)
288 omr_prefix_t **ppref = &omw->prefixes, *prefix = NULL, **new = NULL;
292 INFO("status: %d prefixes: %p count: %d", status, prefixes, prefixes == NULL ? -1 : (int)prefixes->num);
305 // Delete any prefixes that are not in the list provided by Thread.
309 for (i = 0; i < prefixes->num; i++) {
310 cti_prefix_t *cti_prefix = prefixes->prefixes[i];
317 if (i == prefixes->num) {
342 // we discover new prefixes, the first new prefix will be pointed to by *new.
345 // Add any prefixes that are not present.
346 for (i = 0; i < prefixes->num; i++) {
347 cti_prefix_t *cti_prefix = prefixes->prefixes[i];
351 for (prefix = omw->prefixes; prefix != NULL; prefix = prefix->next) {
383 for (prefix = omw->prefixes; prefix != NULL && prefix != *new; prefix = prefix->next) {
399 INFO("omw->prefixes = %p", omw->prefixes);
400 for (prefix = omw->prefixes; prefix != NULL; prefix = prefix->next) {
407 omr_watcher_send_prefix_event(omw, omr_watcher_event_prefix_update_finished, omw->prefixes, NULL);
517 // See if there are any prefixes on the list that should have been updated but haven't been
518 for (omr_prefix_t *prefix = watcher->prefixes; prefix != NULL; prefix = prefix->next) {
524 INFO("prefixes expected to be refreshed were not.");
553 omr_watcher_route_update_callback(void *context, cti_prefix_vec_t *UNUSED prefixes, cti_status_t status)
650 for (omr_prefix_t *prefix = watcher->prefixes; prefix != NULL; prefix = prefix->next) {
674 for (omr_prefix_t *prefix = watcher->prefixes; prefix != NULL; prefix = prefix->next) {
692 for (omr_prefix_t *prefix = watcher->prefixes; prefix != NULL; prefix = prefix->next) {
711 for (omr_prefix_t *prefix = watcher->prefixes; prefix != NULL; prefix = prefix->next) {
735 return watcher->prefixes;
746 for (opl = &watcher->prefixes; *opl != NULL; opl = &(*opl)->next) {