/titanic_50/usr/src/lib/libnwam/common/ |
H A D | libnwam_ncp.c | 178 return (NWAM_SUCCESS); in nwam_ncp_name_to_file() 189 != NWAM_SUCCESS) in nwam_ncp_create() 194 != NWAM_SUCCESS) { in nwam_ncp_create() 200 if ((err = nwam_commit(ncpfile, *ncphp, flags)) != NWAM_SUCCESS) { in nwam_ncp_create() 242 return (NWAM_SUCCESS); in nwam_ncp_file_to_name() 255 if ((err = nwam_ncp_name_to_file(name, &filename)) != NWAM_SUCCESS) { in nwam_ncp_read() 273 &parentval)) != NWAM_SUCCESS || in nwam_ncu_get_parent_ncp_name() 275 != NWAM_SUCCESS || in nwam_ncu_get_parent_ncp_name() 284 return (NWAM_SUCCESS); in nwam_ncu_get_parent_ncp_name() 299 != NWAM_SUCCESS) in nwam_ncp_copy_callback() [all …]
|
H A D | libnwam_loc.c | 204 lochp)) != NWAM_SUCCESS) in nwam_loc_create() 209 != NWAM_SUCCESS) in nwam_loc_create() 214 != NWAM_SUCCESS) { in nwam_loc_create() 218 NWAM_LOC_PROP_ACTIVATION_MODE, val)) != NWAM_SUCCESS) { in nwam_loc_create() 227 if ((err = nwam_value_create_boolean(B_FALSE, &val)) != NWAM_SUCCESS) in nwam_loc_create() 230 NWAM_LOC_PROP_ENABLED, val)) != NWAM_SUCCESS) in nwam_loc_create() 240 NWAM_SUCCESS) in nwam_loc_create() 243 NWAM_LOC_PROP_NAMESERVICES, val)) != NWAM_SUCCESS) in nwam_loc_create() 249 NWAM_SUCCESS) in nwam_loc_create() 252 NWAM_LOC_PROP_DNS_NAMESERVICE_CONFIGSRC, val)) != NWAM_SUCCESS) in nwam_loc_create() [all …]
|
H A D | libnwam_enm.c | 126 enmhp)) != NWAM_SUCCESS) in nwam_enm_create() 134 != NWAM_SUCCESS) in nwam_enm_create() 138 &actval)) != NWAM_SUCCESS || in nwam_enm_create() 141 != NWAM_SUCCESS) || in nwam_enm_create() 143 != NWAM_SUCCESS) { in nwam_enm_create() 147 NWAM_ENM_PROP_ACTIVATION_MODE, actval)) == NWAM_SUCCESS && in nwam_enm_create() 149 NWAM_ENM_PROP_ENABLED, falseval)) == NWAM_SUCCESS) { in nwam_enm_create() 162 if (err != NWAM_SUCCESS) { in nwam_enm_create() 203 &actval) != NWAM_SUCCESS) { in enm_selectcb() 206 if (nwam_value_get_uint64(actval, &activation) != NWAM_SUCCESS) { in enm_selectcb() [all …]
|
H A D | libnwam_known_wlan.c | 102 NWAM_KNOWN_WLAN_CONF_FILE, name, kwhp)) != NWAM_SUCCESS) in nwam_known_wlan_create() 110 != NWAM_SUCCESS) in nwam_known_wlan_create() 112 if ((err = nwam_value_create_uint64(0, &priorityval)) != NWAM_SUCCESS) in nwam_known_wlan_create() 119 if (err != NWAM_SUCCESS) { in nwam_known_wlan_create() 186 &((newlist[num_wlans - 1])->wlan_name))) != NWAM_SUCCESS || in get_wlans_cb() 188 NWAM_KNOWN_WLAN_PROP_PRIORITY, &priorityval)) != NWAM_SUCCESS || in get_wlans_cb() 190 &((newlist[num_wlans - 1])->wlan_priority))) != NWAM_SUCCESS) { in get_wlans_cb() 202 return (NWAM_SUCCESS); in get_wlans_cb() 222 != NWAM_SUCCESS) in nwam_walk_known_wlans() 233 != NWAM_SUCCESS) { in nwam_walk_known_wlans() [all …]
|
H A D | libnwam_object.c | 65 return (NWAM_SUCCESS); in nwam_handle_create() 83 if ((err = nwam_valid_flags(flags, NWAM_FLAG_BLOCKING)) != NWAM_SUCCESS) in nwam_read() 85 if ((err = nwam_handle_create(type, name, hpp)) != NWAM_SUCCESS) in nwam_read() 91 &(*hpp)->nwh_data)) != NWAM_SUCCESS) { in nwam_read() 104 == NWAM_SUCCESS) { in nwam_read() 113 return (NWAM_SUCCESS); in nwam_read() 128 if (nwam_read(type, dbname, name, 0, &hp) == NWAM_SUCCESS) { in nwam_create() 145 return (NWAM_SUCCESS); in nwam_get_name() 161 return (NWAM_SUCCESS); in nwam_set_name() 173 == NWAM_SUCCESS && in name_cmp() [all …]
|
H A D | libnwam_files.c | 165 if ((err = nwam_alloc_object_list(proplist)) != NWAM_SUCCESS) in nwam_line_to_object() 265 nelem, &val)) != NWAM_SUCCESS || in nwam_line_to_object() 267 propname, val)) != NWAM_SUCCESS) { in nwam_line_to_object() 283 nelem, &val)) != NWAM_SUCCESS || in nwam_line_to_object() 285 propname, val)) != NWAM_SUCCESS) { in nwam_line_to_object() 301 nelem, &val)) != NWAM_SUCCESS || in nwam_line_to_object() 303 propname, val)) != NWAM_SUCCESS) { in nwam_line_to_object() 319 nelem, &val)) != NWAM_SUCCESS || in nwam_line_to_object() 321 propname, val)) != NWAM_SUCCESS) { in nwam_line_to_object() 338 return (NWAM_SUCCESS); in nwam_line_to_object() [all …]
|
H A D | libnwam_util.c | 122 return (NWAM_SUCCESS); in send_msg_to_nwam() 196 if (err == NWAM_SUCCESS) { in nwam_request_state() 258 if ((err = send_msg_to_nwam(&req)) != NWAM_SUCCESS) in nwam_request_wlan_scan_results() 270 return (NWAM_SUCCESS); in nwam_request_wlan_scan_results() 284 if (err == NWAM_SUCCESS) in nwam_request_active_priority_group() 507 return (NWAM_SUCCESS); in nwam_errno_to_nwam_error() 544 return (NWAM_SUCCESS); in nwam_valid_flags() 556 != NWAM_SUCCESS) in nwam_valid_condition() 563 &object_type, &condition, &object_name) != NWAM_SUCCESS) in nwam_valid_condition() 568 return (NWAM_SUCCESS); in nwam_valid_condition() [all …]
|
H A D | libnwam_backend.c | 65 nwam_error_t err = NWAM_SUCCESS; in nwam_check_auths() 138 &datalen)) != NWAM_SUCCESS) in nwam_create_backend_door_arg() 154 arg->nwbda_result = NWAM_SUCCESS; in nwam_create_backend_door_arg() 166 return (NWAM_SUCCESS); in nwam_create_backend_door_arg() 180 if (arg->nwbda_result != NWAM_SUCCESS) in nwam_read_object_from_backend_door_arg() 185 arg->nwbda_datalen, objp)) != NWAM_SUCCESS) in nwam_read_object_from_backend_door_arg() 202 return (NWAM_SUCCESS); in nwam_read_object_from_backend_door_arg() 236 != NWAM_SUCCESS) { in nwam_backend_door_server() 254 req->nwbda_flags, &newobj)) != NWAM_SUCCESS) { in nwam_backend_door_server() 264 (char **)&dataptr, &datalen)) != NWAM_SUCCESS) in nwam_backend_door_server() [all …]
|
H A D | libnwam_values.c | 81 nwam_error_t err = NWAM_SUCCESS; in nwam_value_create() 137 if (err != NWAM_SUCCESS) { in nwam_value_create() 152 return (NWAM_SUCCESS); in nwam_value_create() 245 return (NWAM_SUCCESS); in nwam_value_get_boolean_array() 256 if (err != NWAM_SUCCESS) in nwam_value_get_boolean() 262 return (NWAM_SUCCESS); in nwam_value_get_boolean() 273 return (NWAM_SUCCESS); in nwam_value_get_int64_array() 284 if (err != NWAM_SUCCESS) in nwam_value_get_int64() 290 return (NWAM_SUCCESS); in nwam_value_get_int64() 301 return (NWAM_SUCCESS); in nwam_value_get_uint64_array() [all …]
|
H A D | libnwam_events.c | 78 return (NWAM_SUCCESS); in nwam_event_alloc() 99 if ((err = nwam_event_alloc(&event)) != NWAM_SUCCESS) in nwam_event_wait() 125 return (NWAM_SUCCESS); in nwam_event_wait() 137 nwam_error_t rc = NWAM_SUCCESS; in nwam_events_init() 151 (NWAM_REQUEST_TYPE_EVENT_REGISTER, eventmsgfile)) != NWAM_SUCCESS) { in nwam_events_init() 215 return (NWAM_SUCCESS); in nwam_event_queue_init() 231 nwam_error_t err = NWAM_SUCCESS; in nwam_event_send()
|
H A D | libnwam_error.c | 34 {NWAM_SUCCESS, "no error"},
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | nwamcfg.c | 654 if (nwam_uint64_get_value_string(propname, value, &str) == NWAM_SUCCESS) in propval_to_str() 1155 nwam_error_t ret = NWAM_SUCCESS; in do_commit() 1176 if (ret == NWAM_SUCCESS) { in do_commit() 1199 if (verr != NWAM_SUCCESS) in do_commit() 1299 nwam_error_t ret = NWAM_SUCCESS; in create_func() 1359 if (ret != NWAM_SUCCESS) { in create_func() 1373 if (ret != NWAM_SUCCESS) in create_func() 1381 if (ret != NWAM_SUCCESS) in create_func() 1389 if (ret != NWAM_SUCCESS) in create_func() 1398 if (ret != NWAM_SUCCESS) in create_func() [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/ |
H A D | nwamadm.c | 257 if (nwam_ncp_get_name(ncph, namep) != NWAM_SUCCESS) in active_ncp_callback() 281 if (ret == NWAM_SUCCESS) in determine_active_ncp() 294 if (nwam_loc_read(name, 0, &loch) != NWAM_SUCCESS) in valid_loc() 305 if (nwam_enm_read(name, 0, &enmh) != NWAM_SUCCESS) in valid_enm() 316 if (nwam_ncp_read(name, 0, &ncph) != NWAM_SUCCESS) in valid_ncp() 334 if (ret != NWAM_SUCCESS && ret != NWAM_ENTITY_MULTIPLE_VALUES) in valid_ncu() 400 optarg, &class) != NWAM_SUCCESS) { in parse_argv() 466 if ((ret = nwam_loc_read(name, 0, &loch)) != NWAM_SUCCESS) in loc_action() 485 if ((ret = nwam_enm_read(name, 0, &enmh)) != NWAM_SUCCESS) in enm_action() 514 case NWAM_SUCCESS: in ncu_action() [all …]
|
/titanic_50/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | llp.c | 311 case NWAM_SUCCESS: in upgrade_llp_config() 336 != NWAM_SUCCESS || in upgrade_llp_config() 338 NWAM_NCU_CLASS_PHYS, &phys_ncu) != NWAM_SUCCESS) { in upgrade_llp_config() 349 != NWAM_SUCCESS) in upgrade_llp_config() 355 != NWAM_SUCCESS) in upgrade_llp_config() 361 != NWAM_SUCCESS) in upgrade_llp_config() 370 prop)) != NWAM_SUCCESS) in upgrade_llp_config() 376 prop)) != NWAM_SUCCESS) in upgrade_llp_config() 387 prop)) != NWAM_SUCCESS) in upgrade_llp_config() 393 prop)) != NWAM_SUCCESS) in upgrade_llp_config() [all …]
|
H A D | ncu.c | 68 != NWAM_SUCCESS) { in nwamd_ncu_object_find() 87 != NWAM_SUCCESS) in nwamd_set_ncu_string() 102 != NWAM_SUCCESS) in nwamd_set_ncu_uint() 115 if ((err = nwam_ncu_get_prop_value(ncuh, prop, val)) != NWAM_SUCCESS) in nwamd_get_ncu_string() 126 if ((err = nwam_ncu_get_prop_value(ncuh, prop, val)) != NWAM_SUCCESS) in nwamd_get_ncu_uint() 521 if (nwam_ncu_get_name(ncuh, &name) != NWAM_SUCCESS) { in ncu_create_init_fini_event() 530 NWAM_NCU_PROP_TYPE)) != NWAM_SUCCESS) { in ncu_create_init_fini_event() 540 != NWAM_SUCCESS) { in ncu_create_init_fini_event() 611 &ncu_prop)) != NWAM_SUCCESS) { in populate_common_ncu_properties() 621 NWAM_SUCCESS) { in populate_common_ncu_properties() [all …]
|
H A D | known_wlans.c | 326 != NWAM_SUCCESS) { in upgrade_known_wifi_nets_config() 335 != NWAM_SUCCESS) { in upgrade_known_wifi_nets_config() 345 if (err != NWAM_SUCCESS) { in upgrade_known_wifi_nets_config() 369 kw->kw_num_bssids, &bssidsval)) != NWAM_SUCCESS) { in upgrade_known_wifi_nets_config() 385 if (err != NWAM_SUCCESS) { in upgrade_known_wifi_nets_config() 405 &keynameval)) == NWAM_SUCCESS) { in upgrade_known_wifi_nets_config() 414 &secmodeval)) != NWAM_SUCCESS || in upgrade_known_wifi_nets_config() 417 != NWAM_SUCCESS) { in upgrade_known_wifi_nets_config() 430 if (err != NWAM_SUCCESS) { in upgrade_known_wifi_nets_config() 449 if ((err = nwam_known_wlan_read(essid, 0, &kwh)) != NWAM_SUCCESS) in known_wlan_get_keyname() [all …]
|
H A D | enm.c | 62 if (nwam_enm_get_name(enmh, &name) != NWAM_SUCCESS) { in enm_create_init_fini_event() 106 &enabledval) != NWAM_SUCCESS) { in enm_is_enabled() 110 if (nwam_value_get_boolean(enabledval, &enabled) != NWAM_SUCCESS) { in enm_is_enabled() 126 &activationval) != NWAM_SUCCESS) { in enm_get_activation_mode() 131 if (nwam_value_get_uint64(activationval, &activation) != NWAM_SUCCESS) { in enm_get_activation_mode() 172 &scriptval) != NWAM_SUCCESS || in nwamd_enm_activate_deactivate_thread() 173 nwam_value_get_string(scriptval, &script) != NWAM_SUCCESS) { in nwamd_enm_activate_deactivate_thread() 396 case NWAM_SUCCESS: in nwamd_enm_activate() 398 if (nwam_value_get_string(fmrival, &fmri) != NWAM_SUCCESS) { in nwamd_enm_activate() 505 != NWAM_SUCCESS) { in nwamd_enm_deactivate() [all …]
|
H A D | loc.c | 62 if (nwam_loc_get_name(loch, &name) != NWAM_SUCCESS) { in loc_create_init_fini_event() 110 &enabledval) != NWAM_SUCCESS) { in loc_is_enabled() 116 != NWAM_SUCCESS) { in loc_is_enabled() 134 &activationval) != NWAM_SUCCESS) { in loc_get_activation_mode() 141 if (err != NWAM_SUCCESS) { in loc_get_activation_mode() 296 NWAM_LOC_PROP_CONDITIONS, &conditionval) != NWAM_SUCCESS) { in nwamd_loc_check() 302 &conditions, &nelem) != NWAM_SUCCESS) { in nwamd_loc_check() 424 != NWAM_SUCCESS) { in nwamd_loc_handle_init_event()
|
H A D | conditions.c | 161 == NWAM_SUCCESS) { in test_condition_ncu() 164 &ncuh) == NWAM_SUCCESS) { in test_condition_ncu() 169 if (nwam_ncu_get_name(ncuh, &real_name) != NWAM_SUCCESS) { in test_condition_ncu() 182 != NWAM_SUCCESS) { in test_condition_ncu() 202 if (nwam_enm_read(enm_name, 0, &enmh) != NWAM_SUCCESS) in test_condition_enm() 204 if (nwam_enm_get_name(enmh, &real_name) != NWAM_SUCCESS) { in test_condition_enm() 224 if (nwam_loc_read(loc_name, 0, &loch) != NWAM_SUCCESS) in test_condition_loc() 226 if (nwam_loc_get_name(loch, &real_name) != NWAM_SUCCESS) { in test_condition_loc() 708 &object_type, &condition, &object_name) != NWAM_SUCCESS) { in nwamd_check_conditions() 760 &object_type, &condition, &object_name) != NWAM_SUCCESS || in nwamd_rate_conditions() [all …]
|
H A D | door_if.c | 135 if (err != NWAM_SUCCESS) { in nwamd_door_req_event_register() 151 return (NWAM_SUCCESS); in nwamd_door_req_event_unregister() 205 return (NWAM_SUCCESS); in nwamd_door_req_wlan_scan_results() 431 if (err == NWAM_SUCCESS) { in nwamd_door_req_action() 514 return (NWAM_SUCCESS); in nwamd_door_req_state() 530 return (NWAM_SUCCESS); in nwamd_door_req_priority_group() 547 req->nwda_error = NWAM_SUCCESS; in nwamd_door_switch() 597 if (req->nwda_error == NWAM_SUCCESS) in nwamd_door_switch()
|
H A D | ncu_phys.c | 369 NWAM_KNOWN_WLAN_PROP_KEYNAME, &old_key)) != NWAM_SUCCESS) { in find_keyname_cb() 376 != NWAM_SUCCESS) { in find_keyname_cb() 516 return (NWAM_SUCCESS); in nwamd_wlan_set_key() 562 return (NWAM_SUCCESS); in nwamd_wlan_set_key() 768 NWAM_KNOWN_WLAN_PROP_BSSIDS, &bssidval)) != NWAM_SUCCESS) { in find_bssid_cb() 774 != NWAM_SUCCESS) { in find_bssid_cb() 783 != NWAM_SUCCESS) { in find_bssid_cb() 915 return (NWAM_SUCCESS); in nwamd_wlan_select() 932 NWAM_KNOWN_WLAN_PROP_BSSIDS, &bssidsval)) != NWAM_SUCCESS) { in bssid_match() 937 != NWAM_SUCCESS) { in bssid_match() [all …]
|
H A D | events.c | 321 &object_name)) != NWAM_SUCCESS) { in nwamd_event_init_link_action() 349 &object_name)) != NWAM_SUCCESS) { in nwamd_event_init_link_state() 379 NWAM_NCU_TYPE_INTERFACE, &object_name)) != NWAM_SUCCESS) { in nwamd_event_init_if_state() 437 &object_name)) != NWAM_SUCCESS) { in nwamd_event_init_wlan() 679 if (err != NWAM_SUCCESS) { in nwamd_event_send()
|
H A D | ncp.c | 123 if (err == NWAM_SUCCESS) { in nwamd_ncp_handle_enable_event() 184 if ((err = nwam_ncp_read(new_ncp, 0, &new_ncph)) != NWAM_SUCCESS) { in nwamd_ncp_handle_state_event()
|
H A D | ncu_ip.c | 524 NWAM_SUCCESS) { in interface_ncu_up_down() 745 == NWAM_SUCCESS) { in add_ip_address() 1390 != NWAM_SUCCESS) { in start_dhcp_thread()
|
/titanic_50/usr/src/cmd/cmd-inet/lib/netcfgd/ |
H A D | netcfgd.c | 172 if ((err = nwam_backend_init()) != NWAM_SUCCESS) { in main()
|