Home
last modified time | relevance | path

Searched refs:dld_handle (Results 1 – 25 of 25) sorted by relevance

/titanic_50/usr/src/cmd/acctadm/
H A Dmain.c57 dladm_handle_t dld_handle = NULL; variable
265 if (dladm_open(&dld_handle) != DLADM_STATUS_OK) in main()
275 dladm_close(dld_handle); in main()
315 err = dladm_stop_usagelog(dld_handle, in main()
366 err = dladm_stop_usagelog(dld_handle, in main()
408 dladm_close(dld_handle); in main()
439 err = dladm_start_usagelog(dld_handle, in main()
464 err = dladm_stop_usagelog(dld_handle, in main()
502 err = dladm_start_usagelog(dld_handle, in main()
558 dladm_close(dld_handle); in main()
H A Dutils.h41 extern dladm_handle_t dld_handle;
H A Dutils.c81 if (dld_handle != NULL) in die()
82 dladm_close(dld_handle); in die()
H A Daconf.c221 (void) dladm_start_usagelog(dld_handle, in aconf_setup()
/titanic_50/usr/src/cmd/rcm_daemon/common/
H A Dbridge_rcm.c86 static dladm_handle_t dld_handle = NULL; variable
153 if ((status = dladm_open(&dld_handle)) != DLADM_STATUS_OK) { in rcm_mod_init()
192 dladm_close(dld_handle); in rcm_mod_fini()
309 status = dladm_bridge_setlink(dld_handle, node->vc_linkid, ""); in bridge_offline()
358 status = dladm_bridge_setlink(dld_handle, node->vc_linkid, in bridge_undo_offline()
552 status = dladm_datalink_id2info(dld_handle, node->vc_linkid, NULL, in bridge_usage()
562 (void) dladm_bridge_getlink(dld_handle, node->vc_linkid, bridge, in bridge_usage()
683 status = dladm_bridge_getlink(dld_handle, linkid, bridge, in bridge_update()
756 (void) dladm_walk_datalink_id(bridge_update, dld_handle, &bua, in cache_update()
839 if ((status = dladm_datalink_id2info(dld_handle, linkid, NULL, in bridge_log_err()
[all …]
H A Daggr_rcm.c104 static dladm_handle_t dld_handle = NULL; variable
187 if ((status = dladm_open(&dld_handle)) != DLADM_STATUS_OK) { in rcm_mod_init()
238 dladm_close(dld_handle); in rcm_mod_fini()
505 status = dladm_aggr_delete(dld_handle, aggr->da_aggrid, in aggr_offline_port()
512 status = dladm_aggr_remove(dld_handle, aggr->da_aggrid, 1, in aggr_offline_port()
552 status = dladm_aggr_up(dld_handle, aggr->da_aggrid); in aggr_online_port()
559 status = dladm_aggr_add(dld_handle, aggr->da_aggrid, 1, &port, in aggr_online_port()
781 if ((status = dladm_datalink_id2info(dld_handle, node->vc_linkid, NULL, in aggr_usage()
806 if ((status = dladm_datalink_id2info(dld_handle, in aggr_usage()
1058 (void) dladm_walk_datalink_id(aggr_update, dld_handle, &arg, in aggr_update_all()
[all …]
H A Dnetwork_rcm.c78 static dladm_handle_t dld_handle = NULL; variable
146 if ((status = dladm_open(&dld_handle)) != DLADM_STATUS_OK) { in rcm_mod_init()
179 dladm_close(dld_handle); in rcm_mod_fini()
336 (void) dladm_set_linkprop(dld_handle, linkid, NULL, in net_passthru()
338 (void) dladm_destroy_datalink_id(dld_handle, linkid, in net_passthru()
448 if ((status = dladm_datalink_id2info(dld_handle, node->linkid, NULL, in net_getinfo()
683 if (dladm_dev2linkid(dld_handle, dev, &linkid) != DLADM_STATUS_OK) { in devfs_entry()
H A Dvlan_rcm.c100 static dladm_handle_t dld_handle = NULL; variable
176 if ((status = dladm_open(&dld_handle)) != DLADM_STATUS_OK) { in rcm_mod_init()
215 dladm_close(dld_handle); in rcm_mod_fini()
413 if ((status = dladm_vlan_up(dld_handle, vlan->dv_vlanid)) != in vlan_online_vlan()
442 if ((status = dladm_vlan_delete(dld_handle, vlan->dv_vlanid, in vlan_offline_vlan()
686 if ((status = dladm_datalink_id2info(dld_handle, node->vc_linkid, NULL, in vlan_usage()
727 if ((status = dladm_datalink_id2info(dld_handle, in vlan_usage()
953 (void) dladm_walk_datalink_id(vlan_update, dld_handle, &arg, in vlan_update_all()
1079 if ((status = dladm_datalink_id2info(dld_handle, linkid, NULL, in vlan_log_err()
1324 (void) dladm_walk_datalink_id(vlan_up, dld_handle, &arg, in vlan_configure()
H A Dibpart_rcm.c100 static dladm_handle_t dld_handle = NULL; variable
176 if ((status = dladm_open(&dld_handle)) != DLADM_STATUS_OK) { in rcm_mod_init()
215 dladm_close(dld_handle); in rcm_mod_fini()
416 if ((status = dladm_part_up(dld_handle, in ibpart_online_ibpart()
450 if ((status = dladm_part_delete(dld_handle, in ibpart_offline_ibpart()
698 if ((status = dladm_datalink_id2info(dld_handle, node->pc_linkid, NULL, in ibpart_usage()
742 if ((status = dladm_datalink_id2info(dld_handle, in ibpart_usage()
981 (void) dladm_walk_datalink_id(ibpart_update, dld_handle, &arg, in ibpart_update_all()
1108 if ((status = dladm_datalink_id2info(dld_handle, linkid, NULL, in ibpart_log_err()
1359 (void) dladm_walk_datalink_id(ibpart_up, dld_handle, &arg, in ibpart_configure()
H A Dvnic_rcm.c100 static dladm_handle_t dld_handle = NULL; variable
176 if ((status = dladm_open(&dld_handle)) != DLADM_STATUS_OK) { in rcm_mod_init()
215 dladm_close(dld_handle); in rcm_mod_fini()
413 if ((status = dladm_vnic_up(dld_handle, vnic->dlv_vnic_id, 0)) in vnic_online_vnic()
444 if ((status = dladm_vnic_delete(dld_handle, vnic->dlv_vnic_id, in vnic_offline_vnic()
689 if ((status = dladm_datalink_id2info(dld_handle, node->vc_linkid, NULL, in vnic_usage()
730 if ((status = dladm_datalink_id2info(dld_handle, in vnic_usage()
965 (void) dladm_walk_datalink_id(vnic_update, dld_handle, &arg, in vnic_update_all()
1091 if ((status = dladm_datalink_id2info(dld_handle, linkid, NULL, in vnic_log_err()
1335 (void) dladm_walk_datalink_id(vnic_up, dld_handle, &arg, in vnic_configure()
H A Dip_rcm.c159 static dladm_handle_t dld_handle = NULL; variable
256 if ((status = dladm_open(&dld_handle)) != DLADM_STATUS_OK) { in rcm_mod_init()
267 dladm_close(dld_handle); in rcm_mod_init()
268 dld_handle = NULL; in rcm_mod_init()
298 dladm_close(dld_handle); in rcm_mod_fini()
852 if ((status = dladm_datalink_id2info(dld_handle, linkid, NULL, NULL, in ip_usage()
1842 status = dladm_name2info(dld_handle, link, &linkid, &flags, NULL, NULL); in get_link_resource()
2288 if (dladm_datalink_id2info(dld_handle, linkid, NULL, NULL, NULL, ifinst, in if_configure_get_linkid()
/titanic_50/usr/src/cmd/dlmgmtd/
H A Ddlmgmt_main.c76 dladm_handle_t dld_handle = NULL; variable
89 assert(dld_handle != NULL); in dlmgmt_set_doorfd()
93 if (ioctl(dladm_dld_fd(dld_handle), DLDIOC_DOORSERVER, &did) == -1) in dlmgmt_set_doorfd()
252 if (dladm_open(&dld_handle) != DLADM_STATUS_OK) { in dlmgmt_init()
321 if (dld_handle != NULL) { in dlmgmt_fini()
322 dladm_close(dld_handle); in dlmgmt_fini()
323 dld_handle = NULL; in dlmgmt_fini()
H A Ddlmgmt_impl.h90 extern dladm_handle_t dld_handle;
H A Ddlmgmt_door.c1180 s = dladm_init_linkprop(dld_handle, lip->ld_linkid, B_TRUE); in dlmgmt_upcall_linkprop_init()
/titanic_50/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dmain.c56 dladm_handle_t dld_handle = NULL; variable
371 drc = dladm_open(&dld_handle); in main()
471 dladm_close(dld_handle); in main()
H A Dncu_phys.c132 status = dladm_get_linkprop(dld_handle, 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()
159 status = dladm_set_linkprop(dld_handle, ncu->ncu_link.nwamd_link_id, in nwamd_set_unset_link_properties()
503 status = dladm_unset_secobj(dld_handle, obj_name, in nwamd_wlan_set_key()
519 status = dladm_set_secobj(dld_handle, obj_name, class, in nwamd_wlan_set_key()
601 status = dladm_get_secobj(dld_handle, cooked_key->wk_name, &class, in nwamd_wlan_get_key_named()
608 status = dladm_get_secobj(dld_handle, cooked_key->wk_name, in nwamd_wlan_get_key_named()
845 (void) dladm_wlan_disconnect(dld_handle, link->nwamd_link_id); in nwamd_wlan_select()
1203 if (dladm_wlan_get_linkattr(dld_handle, link->nwamd_link_id, in nwamd_wlan_connected()
1267 (void) dladm_wlan_disconnect(dld_handle, link->nwamd_link_id); in nwamd_wlan_connected()
[all …]
H A Dncu.c179 (void) dladm_wlan_disconnect(dld_handle, in nwamd_ncu_state_machine()
429 (void) dladm_wlan_disconnect(dld_handle, in nwamd_ncu_state_machine()
464 (void) dladm_wlan_disconnect(dld_handle, in nwamd_ncu_state_machine()
1080 (void) dladm_name2info(dld_handle, name, in nwamd_ncu_init()
1166 if ((dlrtn = dladm_name2info(dld_handle, name, NULL, NULL, NULL, in add_phys_ncu_to_ncp()
1446 if (dladm_name2info(dld_handle, name, &linkid, NULL, NULL, NULL) != in ncu_aggr_search()
1449 if (dladm_aggr_info(dld_handle, linkid, &ginfo, DLADM_OPT_ACTIVE) in ncu_aggr_search()
1468 if (dladm_name2info(dld_handle, name, &lasd.linkid, NULL, NULL, NULL) in nwamd_link_belongs_to_an_aggr()
1472 (void) dladm_walk(ncu_aggr_search, dld_handle, &lasd, in nwamd_link_belongs_to_an_aggr()
1536 if ((dladm_name2info(dld_handle, name, NULL, &flags, NULL, NULL) in nwamd_destroy_ncu()
[all …]
H A Dconditions.c569 if ((status = dladm_name2info(dld_handle, linkname, &linkid, NULL, NULL, in check_wlan()
577 status = dladm_wlan_get_linkattr(dld_handle, linkid, &attr); in check_wlan()
667 (void) dladm_walk(check_wlan, dld_handle, &wa, DATALINK_CLASS_PHYS, in test_condition_wireless_essid()
685 (void) dladm_walk(check_wlan, dld_handle, &wa, DATALINK_CLASS_PHYS, in test_condition_wireless_bssid()
H A Dncu.h176 extern dladm_handle_t dld_handle;
H A Dllp.c82 if (dladm_name2info(dld_handle, name, NULL, NULL, NULL, &media) != in find_if_type()
H A Dknown_wlans.c401 (void) dladm_walk_secobj(dld_handle, &nsa, in upgrade_known_wifi_nets_config()
H A Dutil.c267 if ((status = dladm_name2info(dld_handle, linkname, &linkid, in nwamd_link_belongs_to_this_zone()
/titanic_50/usr/src/cmd/zoneadmd/
H A Dzoneadmd.h100 extern dladm_handle_t dld_handle;
H A Dzoneadmd.c119 dladm_handle_t dld_handle = NULL; variable
916 status = dladm_zone_boot(dld_handle, zoneid); in zone_bootup()
975 (void) dladm_zone_halt(dld_handle, zoneid); in zone_bootup()
2200 if (dladm_open(&dld_handle) != DLADM_STATUS_OK) { in main()
2294 if (dld_handle != NULL) in main()
2295 dladm_close(dld_handle); in main()
H A Dvplat.c2493 err = dladm_set_linkprop(dld_handle, linkid, "zone", &zone_name, 1, in add_datalink()
2506 err = dladm_linkprop_is_set(dld_handle, linkid, DLADM_PROP_VAL_CURRENT, in add_datalink()
2512 err = dladm_linkprop_is_set(dld_handle, linkid, DLADM_PROP_VAL_CURRENT, in add_datalink()
2521 err = dladm_set_linkprop(dld_handle, linkid, "pool", in add_datalink()
2713 dlstatus = dladm_linkprop_is_set(dld_handle, linkid, DLADM_OPT_ACTIVE, in add_net_for_linkid()
2725 dlstatus = dladm_linkprop_is_set(dld_handle, linkid, DLADM_OPT_ACTIVE, in add_net_for_linkid()
2742 dlstatus = dladm_set_linkprop(dld_handle, linkid, "protection", in add_net_for_linkid()
2749 dlstatus = dladm_set_linkprop(dld_handle, linkid, "allowed-ips", in add_net_for_linkid()
2957 if (dladm_name2info(dld_handle, nwiftab.zone_nwif_physical, in configure_exclusive_network_interfaces()
3059 err = dladm_set_linkprop(dld_handle, *dllink, "pool", in remove_datalink_pool()
[all …]