/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | dlpi_events.c | 98 nwamd_ncu_t *ncu = obj->nwamd_object_data; in nwamd_dlpi_add_link() local 104 ncu, obj->nwamd_object_name, ncu != NULL ? ncu->ncu_type : -1); in nwamd_dlpi_add_link() 106 assert(ncu != NULL && ncu->ncu_type == NWAM_NCU_TYPE_LINK); in nwamd_dlpi_add_link() 108 link = &ncu->ncu_link; in nwamd_dlpi_add_link() 117 rc = dlpi_open(ncu->ncu_name, &link->nwamd_link_dhp, 0); in nwamd_dlpi_add_link() 120 ncu->ncu_name, dlpi_strerror(rc)); in nwamd_dlpi_add_link() 124 nwamd_set_unset_link_properties(ncu, B_TRUE); in nwamd_dlpi_add_link() 128 ncu->ncu_name, &id); in nwamd_dlpi_add_link() 154 nwamd_ncu_t *ncu = obj->nwamd_object_data; in nwamd_dlpi_delete_link() local 157 ncu, obj->nwamd_object_name, ncu != NULL ? ncu->ncu_type : -1); in nwamd_dlpi_delete_link() [all …]
|
H A D | ncu_ip.c | 97 nwamd_ncu_t *ncu; in nwamd_propogate_link_up_down_to_ip() local 105 ncu = ip_ncu->nwamd_object_data; in nwamd_propogate_link_up_down_to_ip() 107 if (ncu->ncu_enabled) { in nwamd_propogate_link_up_down_to_ip() 223 nwamd_add_default_routes(nwamd_ncu_t *ncu) in nwamd_add_default_routes() argument 225 nwamd_if_t *nif = &ncu->ncu_if; in nwamd_add_default_routes() 244 ncu->ncu_name); in nwamd_add_default_routes() 263 ncu->ncu_name); in nwamd_add_default_routes() 272 find_static_address(const struct sockaddr_storage *addr, const nwamd_ncu_t *ncu) in find_static_address() argument 274 struct nwamd_if_address *nifap, *nifa = ncu->ncu_if.nwamd_if_list; in find_static_address() 299 find_nonstatic_address(const nwamd_ncu_t *ncu, sa_family_t family) in find_nonstatic_address() argument [all …]
|
H A D | ncu.c | 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() [all …]
|
H A D | ncu_phys.c | 110 nwamd_set_unset_link_properties(nwamd_ncu_t *ncu, boolean_t set) in nwamd_set_unset_link_properties() argument 112 dlpi_handle_t dh = ncu->ncu_link.nwamd_link_dhp; in nwamd_set_unset_link_properties() 113 char *addr = set ? ncu->ncu_link.nwamd_link_mac_addr : NULL; in nwamd_set_unset_link_properties() 114 uint64_t mtu = set ? ncu->ncu_link.nwamd_link_mtu : 0; in nwamd_set_unset_link_properties() 115 char **autopush = set ? ncu->ncu_link.nwamd_link_autopush : NULL; in nwamd_set_unset_link_properties() 116 uint_t num_autopush = set ? ncu->ncu_link.nwamd_link_num_autopush : 0; in nwamd_set_unset_link_properties() 133 ncu->ncu_link.nwamd_link_id, DLADM_PROP_VAL_DEFAULT, "mtu", in nwamd_set_unset_link_properties() 148 "for link %s", mtustr, ncu->ncu_name); in nwamd_set_unset_link_properties() 149 status = dladm_set_linkprop(dld_handle, ncu->ncu_link.nwamd_link_id, in nwamd_set_unset_link_properties() 158 "autopush module for link %s", num_autopush, ncu->ncu_name); in nwamd_set_unset_link_properties() [all …]
|
H A D | ncp.c | 238 nwamd_ncu_t *ncu = object->nwamd_object_data; in find_next_priority_group_cb() local 240 if (ncu->ncu_link.nwamd_link_activation_mode != in find_next_priority_group_cb() 244 priority = ncu->ncu_link.nwamd_link_priority_group; in find_next_priority_group_cb() 317 nwamd_ncu_t *ncu; in nwamd_ncu_check_or_activate() local 327 ncu = object->nwamd_object_data; in nwamd_ncu_check_or_activate() 338 if (ncu->ncu_type != NWAM_NCU_TYPE_LINK) { in nwamd_ncu_check_or_activate() 343 if (!wa->manual && ncu->ncu_link.nwamd_link_activation_mode != in nwamd_ncu_check_or_activate() 349 if (wa->manual && ncu->ncu_link.nwamd_link_activation_mode != in nwamd_ncu_check_or_activate() 356 priority_group = ncu->ncu_link.nwamd_link_priority_group; in nwamd_ncu_check_or_activate() 357 priority_mode = ncu->ncu_link.nwamd_link_priority_mode; in nwamd_ncu_check_or_activate() [all …]
|
H A D | Makefile | 32 main.o ncp.o ncu.o ncu_phys.o ncu_ip.o objects.o\ 35 HEADERS= conditions.h events.h known_wlans.h llp.h ncp.h ncu.h\
|
H A D | conditions.c | 280 nwamd_ncu_t *ncu = (nwamd_ncu_t *)obj->nwamd_object_data; in get_adv_domains() local 285 if (ncu->ncu_type != NWAM_NCU_TYPE_INTERFACE) in get_adv_domains() 288 dns = nwamd_get_dhcpinfo_data("DNSdmain", ncu->ncu_name); in get_adv_domains() 289 nis = nwamd_get_dhcpinfo_data("NISdmain", ncu->ncu_name); in get_adv_domains()
|
H A D | door_if.c | 172 nwamd_ncu_t *ncu; in nwamd_door_req_wlan_scan_results() local 189 ncu = obj->nwamd_object_data; in nwamd_door_req_wlan_scan_results() 190 link = &ncu->ncu_link; in nwamd_door_req_wlan_scan_results()
|
/illumos-gate/usr/src/lib/libnwam/ |
H A D | README | 262 nwam_ncu_type_t type, nwam_ncu_class_t class, nwam_ncu_handle_t *ncu); 264 nwam_ncu_type_t type, uint64_t flags, nwam_ncu_handle_t *ncu); 265 nwam_error_t nwam_ncu_copy(nwam_ncu_handle_t ncu, const char *newname, 267 nwam_error_t nwam_ncu_commit(nwam_ncu_handle_t ncu, uint64_t flags); 268 nwam_error_t nwam_ncu_destroy(nwam_ncu_handle_t ncu, uint64_t flags); 269 nwam_error_t nwam_ncu_free(nwam_ncu_handle_t ncu); 270 nwam_error_t nwam_ncu_validate(nwam_ncu_handle_t ncu, const char **errprop); 271 nwam_error_t nwam_ncu_get_prop_value(nwam_ncu_handle_t ncu, const char *prop, 275 nwam_error_t nwam_ncu_delete_prop(nwam_ncu_handle_t ncu, const char *prop); 276 nwam_error_t nwam_ncu_set_prop_value(nwam_ncu_handle_t ncu, const char *prop, [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/ |
H A D | nwamadm.c | 386 uint64_t ncu = NWAM_NCU_TYPE_ANY; in parse_argv() local 403 ncu = nwam_ncu_class_to_type(class); in parse_argv() 404 if (ncu == NWAM_NCU_TYPE_ANY || in parse_argv() 405 ncu == NWAM_NCU_TYPE_UNKNOWN) in parse_argv() 420 if (ncu != NWAM_NCU_TYPE_ANY) { in parse_argv() 455 *ncu_type = ncu; in parse_argv()
|
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | dhcpagent.dfl | 109 # ncu ip-reqhost property of nwamcfg(8) or by flagging the interface as 131 # PQDN specified by the -h,--reqhost option of ipadm(8), by the ncu 140 # from a PQDN specified by the -h,--reqhost option of ipadm(8), by the ncu 151 # ipadm(8) or an ncu ip-reqhost property set with nwamcfg(8); or else
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | nwamcfg.c | 2686 list_ncu_callback(nwam_ncu_handle_t ncu, void *arg) in list_ncu_callback() argument 2688 return (list_callback(NWAM_OBJECT_TYPE_NCU, ncu, arg, "NCUs")); in list_ncu_callback() 3253 export_ncu_callback(nwam_ncu_handle_t ncu, void *arg) in export_ncu_callback() argument 3268 if ((ret = nwam_ncu_get_ncu_type(ncu, &type)) != NWAM_SUCCESS) in export_ncu_callback() 3270 if ((ret = nwam_ncu_get_ncu_class(ncu, &class)) != NWAM_SUCCESS) in export_ncu_callback() 3273 if ((ret = nwam_ncu_get_name(ncu, &name)) != NWAM_SUCCESS) in export_ncu_callback() 3287 ret = nwam_ncu_get_prop_value(ncu, props[i], &vals); in export_ncu_callback()
|