Lines Matching defs:ncph
1157 add_phys_ncu_to_ncp(nwam_ncp_handle_t ncph, const char *name)
1175 if ((err = nwam_ncu_create(ncph, name, NWAM_NCU_TYPE_LINK,
1229 add_ip_ncu_to_ncp(nwam_ncp_handle_t ncph, const char *name)
1234 if ((err = nwam_ncu_create(ncph, name, NWAM_NCU_TYPE_INTERFACE,
1260 remove_ncu_from_ncp(nwam_ncp_handle_t ncph, const char *name,
1266 if ((err = nwam_ncu_read(ncph, name, type, 0, &ncuh)) != NWAM_SUCCESS) {
1329 nwam_ncp_handle_t ncph;
1367 if ((err = nwam_ncp_read(NWAM_NCP_NAME_AUTOMATIC, 0, &ncph))
1370 err = nwam_ncp_create(NWAM_NCP_NAME_AUTOMATIC, 0, &ncph);
1377 add_phys_ncu_to_ncp(ncph, name);
1378 add_ip_ncu_to_ncp(ncph, name);
1386 remove_ncu_from_ncp(ncph, name, NWAM_NCU_TYPE_INTERFACE);
1387 remove_ncu_from_ncp(ncph, name, NWAM_NCU_TYPE_LINK);
1389 nwam_ncp_free(ncph);
1484 nwam_ncp_handle_t ncph = data;
1502 if (ncph != NULL && nwam_ncu_read(ncph, name, NWAM_NCU_TYPE_LINK, 0,
1565 nwam_ncp_handle_t ncph;
1572 ncph = active_ncph;
1574 if (nwam_ncp_read(NWAM_NCP_NAME_AUTOMATIC, 0, &ncph)
1576 ncph = NULL;
1581 if (ncph != NULL) {
1582 (void) nwam_ncp_walk_ncus(ncph, nwamd_destroy_ncu, NULL,
1591 (void) dladm_walk(ncu_create_link_action_event, dld_handle, ncph,
1596 nwam_ncp_free(ncph);