Lines Matching refs:status

155 	dladm_status_t status;
162 status = DLADM_STATUS_FAILED;
171 status = DLADM_STATUS_OPTMISSING;
181 return (status);
368 dladm_status_t status;
370 status = dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge));
371 if (status != DLADM_STATUS_OK)
372 return (status);
380 dladm_status_t status;
389 status = bridge_door_call(bridge, bdcBridgeGetRefreshCount,
391 if (status == DLADM_STATUS_NOTFOUND)
393 if (status != DLADM_STATUS_OK)
394 return (status);
398 status = smf_refresh_instance(fmri) == 0 ?
401 if (status == DLADM_STATUS_OK) {
414 status = bridge_door_call(bridge,
417 if (status != DLADM_STATUS_OK)
426 status = smf_refresh_instance(fmri) == 0 ||
431 return (status);
733 dladm_status_t status;
735 status = dladm_create_conf(handle, link, linkid, DATALINK_CLASS_BRIDGE,
737 if (status == DLADM_STATUS_OK) {
742 status = dladm_write_conf(handle, conf, linkid);
745 return (status);
778 dladm_status_t status;
783 status = smf_enable_instance(fmri, 0) == 0 ?
786 return (status);
797 dladm_status_t status;
829 status = umax != 0 ? DLADM_STATUS_OK : DLADM_STATUS_FAILED;
834 status = DLADM_STATUS_FAILED;
838 if (status == DLADM_STATUS_OK && (flags & DLADM_OPT_PERSIST) &&
844 return (status);
861 dladm_status_t status = DLADM_STATUS_FAILED;
877 if ((status = exact_instance(TRILL_SVC_NAME, &sstate)) !=
881 status = DLADM_STATUS_FAILED;
898 status = DLADM_STATUS_OK;
935 status = DLADM_STATUS_OK;
944 if (status != DLADM_STATUS_OK && new_pg)
953 if (status != DLADM_STATUS_OK && new_instance)
958 if (status == DLADM_STATUS_OK)
959 status = enable_instance(TRILL_SVC_NAME, instance);
961 return (status);
974 dladm_status_t status;
996 status = dladm_create_datalink_id(handle, linkname,
999 if (status != DLADM_STATUS_OK)
1000 return (status);
1003 (status = dladm_bridge_persist_conf(handle, linkname,
1009 status = enable_trill(name);
1011 status = disable_trill(name, flags);
1012 if (status != DLADM_STATUS_OK)
1015 if ((status = exact_instance(BRIDGE_SVC_NAME, &sstate)) !=
1020 status = DLADM_STATUS_FAILED;
1025 status = DLADM_STATUS_EXIST;
1030 status = DLADM_STATUS_NOTFOUND;
1094 status = bridge_refresh(name);
1096 status = DLADM_STATUS_OK;
1104 if (status != DLADM_STATUS_OK && new_pg)
1113 if (status != DLADM_STATUS_OK && new_instance)
1123 if (status != DLADM_STATUS_OK && linkid != DATALINK_INVALID_LINKID) {
1128 return (status);
1151 dladm_status_t status;
1160 status = dladm_open_conf(handle, linkid, &conf);
1161 if (status != DLADM_STATUS_OK)
1162 return (status);
1165 status = dladm_get_conf_field(handle, conf, FBRIDGE, oldbridge,
1167 if (status == DLADM_STATUS_OK) {
1173 status = DLADM_STATUS_EXIST;
1177 } else if (status != DLADM_STATUS_NOTFOUND) {
1182 status = dladm_set_conf_field(handle, conf, FBRIDGE,
1186 status = dladm_unset_conf_field(handle, conf, FBRIDGE);
1189 status = DLADM_STATUS_OK;
1192 if (status == DLADM_STATUS_OK)
1193 status = dladm_write_conf(handle, conf, linkid);
1197 if (changed && status == DLADM_STATUS_OK) {
1200 status = bridge_refresh(bridge);
1202 return (status);
1212 dladm_status_t status;
1215 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
1217 return (status);
1220 status = dladm_get_conf_field(handle, conf, FBRIDGE, bridge, bridgelen);
1221 if (status == DLADM_STATUS_OK && *bridge == '\0')
1222 status = DLADM_STATUS_NOTFOUND;
1225 return (status);
1232 dladm_status_t status;
1234 status = dladm_bridge_getlink(handle, linkid, bridge, sizeof (bridge));
1235 if (status == DLADM_STATUS_NOTFOUND)
1237 if (status == DLADM_STATUS_OK)
1238 status = bridge_refresh(bridge);
1239 return (status);
1250 dladm_status_t status = DLADM_STATUS_FAILED;
1255 if ((status = dladm_getsnap_conf(handle, linkid, &conf)) !=
1258 status = dladm_get_conf_field(handle, conf, FBRIDGE, bridge,
1260 if (status == DLADM_STATUS_OK && strcmp(bha->bha_bridge, bridge) == 0) {
1278 dladm_status_t status;
1316 if ((status = disable_trill(bridge, flags)) != DLADM_STATUS_OK)
1320 status = shut_down_instance(BRIDGE_SVC_NAME, bridge, flags);
1321 if (status != DLADM_STATUS_OK)
1342 return (status);
1398 dladm_status_t status;
1403 status = bridge_door_call(instname, bdcBridgeGetConfig,
1405 if (status == DLADM_STATUS_OK) {
1412 return (status);
1465 dladm_status_t status;
1467 status = port_door_call(handle, linkid, bdcPortGetConfig, &portcfg,
1469 if (status != DLADM_STATUS_OK)
1470 return (status);
1492 return (status);
1495 /* Retreive Bridge port status (disabled, bad SDU etc.) */
1504 /* Retrieve Bridge forwarding status of the given link */
1510 dladm_status_t status;
1512 status = port_door_call(handle, linkid, bdcPortGetForwarding, twoints,
1514 if (status == DLADM_STATUS_OK)
1516 return (status);
1696 dladm_status_t status;
1698 status = dladm_datalink_id2info(handle, linkid, NULL, NULL, NULL,
1700 if (status == DLADM_STATUS_OK)
1702 return (status);
1714 dladm_status_t status;
1725 if ((status = i_dladm_bridge_name_from_linkid(handle, linkid, bridge,
1727 return (status);
1730 if ((status = dladm_open_conf(handle, linkid, &conf))
1732 return (status);
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))
1807 if ((status = exact_instance(BRIDGE_SVC_NAME, &sstate))
1814 status = DLADM_STATUS_FAILED;
1821 status = dladm_bridge_configure(handle, bridge, &cfg, bprot,
1823 if (status != DLADM_STATUS_OK)
1829 status = dladm_bridge_enable(bridge);
1835 if ((status = dladm_write_conf(handle, conf, linkid))
1842 *statusp = status;
1852 dladm_status_t status = DLADM_STATUS_OK;
1859 (void) i_dladm_bridge_up(handle, linkid, &status);
1861 return (status);
1873 dladm_status_t status;
1883 if ((status = i_dladm_bridge_name_from_linkid(handle, linkid, bridge,
1892 if ((status = dladm_bridge_get_properties(bridge, &cfg, &bprot))
1895 if ((status = dladm_bridge_get_privprop(bridge, &debug, &tablemax))
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))
1966 *statusp = status;
1978 dladm_status_t status = DLADM_STATUS_OK;
1985 (void) i_dladm_bridge_down(handle, linkid, &status);
1987 return (status);