Lines Matching refs:state
72 struct netd_state *state = st;
85 new_app->state = state;
86 new_app->next = state->registered_user_list;
87 state->registered_user_list = new_app;
101 struct netd_state *state = st;
104 DEBUG_ERR(err, "service[%s] export failed", state->ARP_service_name);
108 NETD_DEBUG("service [%s] exported at iref %u\n", state->ARP_service_name, iref);
111 err = nameservice_register(state->ARP_service_name, iref);
113 DEBUG_ERR(err, "nameservice_register failed for [%s]", state->ARP_service_name);
116 state->ARP_service_exported = true;
117 NETD_DEBUG("service [%s] export successful!\n", state->ARP_service_name);
133 struct netd_state *state = app->state;
136 *ip = state->netif_ptr->ip_addr.addr;
137 *gw = state->netif_ptr->gw.addr;
138 *mask = state->netif_ptr->netmask.addr;
187 int init_ARP_lookup_service(struct netd_state *state, char *dev_name)
195 snprintf(state->ARP_service_name, sizeof(state->ARP_service_name), "%s%s", dev_name,
197 state->ARP_service_exported = false;
198 state->registered_user_list = NULL;
200 NETD_DEBUG("init_ARP_lookup_service called [%s]\n", state->ARP_service_name);
203 err = net_ARP_export(state, export_ARP_cb, connect_ARP_cb,
215 while (!state->ARP_service_exported) {