Lines Matching refs:ncu

152 	nwamd_ncu_t *ncu;  in nwamd_ncu_state_machine()  local
167 ncu = object->nwamd_object_data; in nwamd_ncu_state_machine()
168 link = &ncu->ncu_link; in nwamd_ncu_state_machine()
172 if (ncu->ncu_type == NWAM_NCU_TYPE_LINK) { in nwamd_ncu_state_machine()
194 nwamd_set_selected_connected(ncu, in nwamd_ncu_state_machine()
208 (ncu->ncu_name); in nwamd_ncu_state_machine()
236 nwamd_unplumb_interface(ncu, AF_INET); in nwamd_ncu_state_machine()
237 nwamd_unplumb_interface(ncu, AF_INET6); in nwamd_ncu_state_machine()
245 ncu); in nwamd_ncu_state_machine()
258 if (ncu->ncu_if.nwamd_if_ipv4) in nwamd_ncu_state_machine()
259 nwamd_plumb_interface(ncu, AF_INET); in nwamd_ncu_state_machine()
261 if (ncu->ncu_if.nwamd_if_ipv6) in nwamd_ncu_state_machine()
262 nwamd_plumb_interface(ncu, AF_INET6); in nwamd_ncu_state_machine()
265 nwamd_configure_interface_addresses(ncu); in nwamd_ncu_state_machine()
279 (void) strlcpy(linkname, ncu->ncu_name, sizeof (linkname)); in nwamd_ncu_state_machine()
288 (ncu->ncu_name, NWAM_EVENT_TYPE_WLAN_NEED_CHOICE, B_FALSE, in nwamd_ncu_state_machine()
294 nwamd_set_selected_connected(ncu, B_FALSE, B_FALSE); in nwamd_ncu_state_machine()
315 (ncu->ncu_name, NWAM_EVENT_TYPE_WLAN_NEED_KEY, B_FALSE, in nwamd_ncu_state_machine()
323 (void) strlcpy(linkname, ncu->ncu_name, sizeof (linkname)); in nwamd_ncu_state_machine()
330 if (ncu->ncu_type == NWAM_NCU_TYPE_LINK) { in nwamd_ncu_state_machine()
337 nwamd_set_selected_connected(ncu, B_TRUE, up); in nwamd_ncu_state_machine()
348 (ncu->ncu_name, in nwamd_ncu_state_machine()
363 if (!up && ncu->ncu_enabled) { in nwamd_ncu_state_machine()
373 (ncu->ncu_name, B_FALSE); in nwamd_ncu_state_machine()
383 (void) strlcpy(linkname, ncu->ncu_name, in nwamd_ncu_state_machine()
401 if (ncu->ncu_type == NWAM_NCU_TYPE_INTERFACE) { in nwamd_ncu_state_machine()
407 nwamd_add_default_routes(ncu); in nwamd_ncu_state_machine()
440 if (ncu->ncu_type == NWAM_NCU_TYPE_LINK) { in nwamd_ncu_state_machine()
445 nwamd_set_selected_connected(ncu, B_FALSE, in nwamd_ncu_state_machine()
455 nwamd_unplumb_interface(ncu, AF_INET); in nwamd_ncu_state_machine()
456 nwamd_unplumb_interface(ncu, AF_INET6); in nwamd_ncu_state_machine()
467 ncu->ncu_enabled = B_FALSE; in nwamd_ncu_state_machine()
475 if (ncu->ncu_type == NWAM_NCU_TYPE_LINK) { in nwamd_ncu_state_machine()
480 nwamd_set_selected_connected(ncu, B_FALSE, in nwamd_ncu_state_machine()
486 if (ncu->ncu_if.nwamd_if_ipv4) { in nwamd_ncu_state_machine()
487 nwamd_unplumb_interface(ncu, AF_INET); in nwamd_ncu_state_machine()
489 if (ncu->ncu_if.nwamd_if_ipv6) { in nwamd_ncu_state_machine()
490 nwamd_unplumb_interface(ncu, AF_INET6); in nwamd_ncu_state_machine()
503 ncu->ncu_enabled = B_FALSE; in nwamd_ncu_state_machine()
1156 nwamd_ncu_free(nwamd_ncu_t *ncu) in nwamd_ncu_free() argument
1158 if (ncu != NULL) { in nwamd_ncu_free()
1159 assert(ncu->ncu_type == NWAM_NCU_TYPE_LINK || in nwamd_ncu_free()
1160 ncu->ncu_type == NWAM_NCU_TYPE_INTERFACE); in nwamd_ncu_free()
1161 if (ncu->ncu_type == NWAM_NCU_TYPE_LINK) { in nwamd_ncu_free()
1162 struct nwamd_link *l = &ncu->ncu_link; in nwamd_ncu_free()
1169 } else if (ncu->ncu_type == NWAM_NCU_TYPE_INTERFACE) { in nwamd_ncu_free()
1172 nifa = ncu->ncu_if.nwamd_if_list; in nwamd_ncu_free()
1182 free(ncu->ncu_name); in nwamd_ncu_free()
1183 free(ncu); in nwamd_ncu_free()
1190 nwamd_ncu_t *ncu = (nwamd_ncu_t *)ncu_obj->nwamd_object_data; in nwamd_ncu_display() local
1193 (void *)ncu, ncu_obj->nwamd_object_name, in nwamd_ncu_display()
1208 nwamd_ncu_action(const char *ncu, const char *parent, nwam_action_t action) in nwamd_ncu_action() argument
1211 (NWAM_OBJECT_TYPE_NCU, ncu, parent, action); in nwamd_ncu_action()
1351 nwamd_ncu_t *ncu; in ncu_action_change_state() local
1356 ncu = ncu_obj->nwamd_object_data; in ncu_action_change_state()
1368 if (ncu->ncu_enabled) { in ncu_action_change_state()
1671 nwamd_ncu_t *ncu = NULL; in nwamd_ncu_handle_init_event() local
1724 ncu = nwamd_ncu_init(type, name); in nwamd_ncu_handle_init_event()
1726 ncu = object->nwamd_object_data; in nwamd_ncu_handle_init_event()
1729 populate_common_ncu_properties(ncuh, ncu); in nwamd_ncu_handle_init_event()
1730 populate_link_ncu_properties(ncuh, ncu); in nwamd_ncu_handle_init_event()
1737 ncu = nwamd_ncu_init(type, name); in nwamd_ncu_handle_init_event()
1738 populate_common_ncu_properties(ncuh, ncu); in nwamd_ncu_handle_init_event()
1739 populate_ip_ncu_properties(ncuh, ncu); in nwamd_ncu_handle_init_event()
1754 event->event_object, ncuh, ncu); in nwamd_ncu_handle_init_event()
1758 object->nwamd_object_data = ncu; in nwamd_ncu_handle_init_event()
1792 if (!ncu->ncu_enabled) { in nwamd_ncu_handle_init_event()
1802 nwamd_link_t *link = &ncu->ncu_link; in nwamd_ncu_handle_init_event()
1811 if (!ncu->ncu_enabled) { in nwamd_ncu_handle_init_event()
1853 if (ncu->ncu_link.nwamd_link_media == DL_WIFI) { in nwamd_ncu_handle_init_event()
1859 (void) nwamd_wlan_scan(ncu->ncu_name); in nwamd_ncu_handle_init_event()
2007 nwamd_ncu_t *ncu; in nwamd_ncu_handle_state_event() local
2020 ncu = object->nwamd_object_data; in nwamd_ncu_handle_state_event()
2034 (void) strlcpy(m->nwe_data.nwe_object_state.nwe_parent, ncu->ncu_parent, in nwamd_ncu_handle_state_event()
2086 is_link = (ncu->ncu_type == NWAM_NCU_TYPE_LINK); in nwamd_ncu_handle_state_event()
2088 (void) strlcpy(linkname, ncu->ncu_name, sizeof (linkname)); in nwamd_ncu_handle_state_event()
2089 prioritized = (ncu->ncu_type == NWAM_NCU_TYPE_LINK && in nwamd_ncu_handle_state_event()
2090 ncu->ncu_link.nwamd_link_activation_mode == in nwamd_ncu_handle_state_event()
2092 enabled = ncu->ncu_enabled; in nwamd_ncu_handle_state_event()