Lines Matching defs:handle

364 port_door_call(dladm_handle_t handle, datalink_id_t linkid,
370 status = dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge));
549 set_count_property(scf_handle_t *handle, scf_transaction_t *tran,
555 if ((entry = scf_entry_create(handle)) == NULL)
558 if ((value = scf_value_create(handle)) == NULL)
580 set_boolean_property(scf_handle_t *handle, scf_transaction_t *tran,
586 if ((entry = scf_entry_create(handle)) == NULL)
589 if ((value = scf_value_create(handle)) == NULL)
611 set_string_property(scf_handle_t *handle, scf_transaction_t *tran,
617 if ((entry = scf_entry_create(handle)) == NULL)
620 if ((value = scf_value_create(handle)) == NULL)
643 set_fmri_property(scf_handle_t *handle, scf_transaction_t *tran,
649 if ((entry = scf_entry_create(handle)) == NULL)
652 if ((value = scf_value_create(handle)) == NULL)
729 dladm_bridge_persist_conf(dladm_handle_t handle, const char *link,
735 status = dladm_create_conf(handle, link, linkid, DATALINK_CLASS_BRIDGE,
742 status = dladm_write_conf(handle, conf, linkid);
743 dladm_destroy_conf(handle, conf);
971 dladm_bridge_configure(dladm_handle_t handle, const char *name,
996 status = dladm_create_datalink_id(handle, linkname,
1003 (status = dladm_bridge_persist_conf(handle, linkname,
1124 (void) dladm_remove_conf(handle, linkid);
1125 (void) dladm_destroy_datalink_id(handle, linkid, flags);
1148 dladm_bridge_setlink(dladm_handle_t handle, datalink_id_t linkid,
1160 status = dladm_open_conf(handle, linkid, &conf);
1165 status = dladm_get_conf_field(handle, conf, FBRIDGE, oldbridge,
1182 status = dladm_set_conf_field(handle, conf, FBRIDGE,
1186 status = dladm_unset_conf_field(handle, conf, FBRIDGE);
1193 status = dladm_write_conf(handle, conf, linkid);
1196 dladm_destroy_conf(handle, conf);
1209 dladm_bridge_getlink(dladm_handle_t handle, datalink_id_t linkid, char *bridge,
1215 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
1220 status = dladm_get_conf_field(handle, conf, FBRIDGE, bridge, bridgelen);
1224 dladm_destroy_conf(handle, conf);
1229 dladm_bridge_refresh(dladm_handle_t handle, datalink_id_t linkid)
1234 status = dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge));
1248 i_dladm_bridge_is_held(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1255 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
1258 status = dladm_get_conf_field(handle, conf, FBRIDGE, bridge,
1262 dladm_destroy_conf(handle, conf);
1265 dladm_destroy_conf(handle, conf);
1274 dladm_bridge_delete(dladm_handle_t handle, const char *bridge, uint32_t flags)
1286 if (dladm_name2info(handle, linkname, &linkid, NULL, NULL, NULL) !=
1289 else if (dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
1308 (void) dladm_walk_datalink_id(i_dladm_bridge_is_held, handle,
1328 (void) dladm_set_linkprop(handle, linkid, NULL, NULL, 0,
1330 (void) dladm_destroy_datalink_id(handle, linkid,
1335 (void) dladm_remove_conf(handle, linkid);
1336 (void) dladm_destroy_datalink_id(handle, linkid,
1461 dladm_bridge_get_port_cfg(dladm_handle_t handle, datalink_id_t linkid,
1467 status = port_door_call(handle, linkid, bdcPortGetConfig, &portcfg,
1497 dladm_bridge_link_state(dladm_handle_t handle, datalink_id_t linkid,
1500 return (port_door_call(handle, linkid, bdcPortGetState, spsp, 0,
1506 dladm_bridge_get_forwarding(dladm_handle_t handle, datalink_id_t linkid,
1512 status = port_door_call(handle, linkid, bdcPortGetForwarding, twoints,
1521 dladm_bridge_get_fwdtable(dladm_handle_t handle, const char *bridge,
1543 rc = ioctl(dladm_dld_fd(handle), BRIDGE_IOC_LISTFWD, &blfread);
1693 i_dladm_bridge_name_from_linkid(dladm_handle_t handle, datalink_id_t linkid,
1698 status = dladm_datalink_id2info(handle, linkid, NULL, NULL, NULL,
1711 i_dladm_bridge_up(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1725 if ((status = i_dladm_bridge_name_from_linkid(handle, linkid, bridge,
1730 if ((status = dladm_open_conf(handle, linkid, &conf))
1738 if ((status = dladm_get_conf_field(handle, conf,
1740 (status = dladm_unset_conf_field(handle, conf,
1744 if ((status = dladm_get_conf_field(handle, conf,
1746 (status = dladm_unset_conf_field(handle, conf,
1751 if ((status = dladm_get_conf_field(handle, conf, BRIDGE_PROP_PRIORITY,
1753 (status = dladm_unset_conf_field(handle, conf,
1757 if ((status = dladm_get_conf_field(handle, conf, BRIDGE_PROP_MAX_AGE,
1759 (status = dladm_unset_conf_field(handle, conf, BRIDGE_PROP_MAX_AGE))
1763 if ((status = dladm_get_conf_field(handle, conf, BRIDGE_PROP_HELLO_TIME,
1765 (status = dladm_unset_conf_field(handle, conf,
1769 if ((status = dladm_get_conf_field(handle, conf, BRIDGE_PROP_FWD_DELAY,
1771 (status = dladm_unset_conf_field(handle, conf,
1775 if ((status = dladm_get_conf_field(handle, conf,
1778 (status = dladm_unset_conf_field(handle, conf,
1782 if ((status = dladm_get_conf_field(handle, conf, BRIDGE_PROP_DEBUG,
1784 (status = dladm_unset_conf_field(handle, conf, BRIDGE_PROP_DEBUG))
1787 if ((status = dladm_get_conf_field(handle, conf, BRIDGE_PROP_TABLE_MAX,
1789 (status = dladm_unset_conf_field(handle, conf,
1793 if ((status = dladm_get_conf_field(handle, conf, TRILL_PROP_NICK, &u64,
1795 (status = dladm_unset_conf_field(handle, conf, TRILL_PROP_NICK))
1821 status = dladm_bridge_configure(handle, bridge, &cfg, bprot,
1835 if ((status = dladm_write_conf(handle, conf, linkid))
1840 dladm_destroy_conf(handle, conf);
1850 dladm_bridge_up(dladm_handle_t handle, datalink_id_t linkid)
1855 (void) dladm_walk_datalink_id(i_dladm_bridge_up, handle, NULL,
1859 (void) i_dladm_bridge_up(handle, linkid, &status);
1870 i_dladm_bridge_down(dladm_handle_t handle, datalink_id_t linkid, void *arg)
1883 if ((status = i_dladm_bridge_name_from_linkid(handle, linkid, bridge,
1900 if ((status = dladm_open_conf(handle, linkid, &conf))
1907 if ((status = dladm_set_conf_field(handle, conf, BRIDGE_PROP_PROTECT,
1911 if ((status = dladm_set_conf_field(handle, conf, BRIDGE_PROP_FIELD_MASK,
1915 if ((status = dladm_set_conf_field(handle, conf, BRIDGE_PROP_PRIORITY,
1919 if ((status = dladm_set_conf_field(handle, conf, BRIDGE_PROP_MAX_AGE,
1923 if ((status = dladm_set_conf_field(handle, conf, BRIDGE_PROP_HELLO_TIME,
1927 if ((status = dladm_set_conf_field(handle, conf, BRIDGE_PROP_FWD_DELAY,
1931 if ((status = dladm_set_conf_field(handle, conf,
1936 if ((status = dladm_set_conf_field(handle, conf, BRIDGE_PROP_DEBUG,
1940 if ((status = dladm_set_conf_field(handle, conf, BRIDGE_PROP_TABLE_MAX,
1945 if ((status = dladm_set_conf_field(handle, conf, TRILL_PROP_NICK,
1949 if ((status = dladm_write_conf(handle, conf, linkid))
1961 (void) dladm_destroy_datalink_id(handle, linkid, DLADM_OPT_ACTIVE);
1963 dladm_destroy_conf(handle, conf);
1976 dladm_bridge_down(dladm_handle_t handle, datalink_id_t linkid)
1981 (void) dladm_walk_datalink_id(i_dladm_bridge_down, handle, NULL,
1985 (void) i_dladm_bridge_down(handle, linkid, &status);