Lines Matching refs:status
1004 dladm_status_t status = DLADM_STATUS_OK;
1051 status = pdp->pd_check(handle, pdp, linkid, prop_val,
1054 status = check_prop(handle, pdp, linkid, prop_val,
1057 status = DLADM_STATUS_BADARG;
1060 if (status != DLADM_STATUS_OK)
1081 status = pdp->pd_check(handle, pdp, linkid,
1083 if (status != DLADM_STATUS_OK)
1091 status = i_dladm_getset_defval(handle, pdp, linkid,
1093 return (status);
1098 status = (flags & DLADM_OPT_PERSIST) ? DLADM_STATUS_OK :
1101 status = pdp->pd_set(handle, pdp, linkid, vdp, cnt,
1111 return (status);
1122 dladm_status_t status = DLADM_STATUS_OK;
1124 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1126 if (status != DLADM_STATUS_OK)
1127 return (status);
1141 status = s;
1146 status = s;
1152 status = i_dladm_set_private_prop(handle, linkid,
1155 status = DLADM_STATUS_NOTFOUND;
1158 return (status);
1168 dladm_status_t status = DLADM_STATUS_OK;
1181 status = i_dladm_set_linkprop(handle, linkid, prop_name, prop_val,
1183 if (status != DLADM_STATUS_OK)
1184 return (status);
1197 status = i_dladm_set_linkprop_db(handle, linkid, prop_name,
1200 if (status == DLADM_STATUS_OK && (flags & DLADM_OPT_ACTIVE)) {
1202 status = pdp->pd_set(handle, pdp, linkid, NULL,
1207 return (status);
1215 dladm_status_t status;
1217 status = dladm_set_linkprop(handle, linkid, propname, NULL, 0,
1219 if (status != DLADM_STATUS_OK &&
1220 status != DLADM_STATUS_PROPRDONLY &&
1221 status != DLADM_STATUS_NOTSUP)
1222 dlap->dla_status = status;
1276 dladm_status_t status;
1284 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1286 if (status != DLADM_STATUS_OK)
1287 return (status);
1304 status = i_dladm_walk_linkprop_priv_db(handle, linkid, arg, func);
1306 return (status);
1317 dladm_status_t status = DLADM_STATUS_OK;
1357 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1359 if (status != DLADM_STATUS_OK)
1360 return (status);
1370 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1378 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1384 if (status == DLADM_STATUS_OK)
1397 status = DLADM_STATUS_NOTSUP;
1402 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1412 status = pdp->pd_getmod(handle, pdp, linkid, prop_val,
1418 status = DLADM_STATUS_NOTSUP;
1420 status = DLADM_STATUS_TOOSMALL;
1433 status = pdp->pd_get(handle, pdp, linkid, prop_val,
1436 status = i_dladm_get_linkprop_db(handle, linkid,
1441 status = DLADM_STATUS_BADARG;
1445 return (status);
1458 dladm_status_t status;
1481 status = dladm_datalink_id2info(handle, linkid, NULL, &class, &media,
1483 if (status != DLADM_STATUS_OK)
1484 return (status);
1504 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1517 status = DLADM_STATUS_NOTSUP;
1527 status = pdp->pd_get(handle, pdp, linkid, prop_val, val_cntp,
1533 status = DLADM_STATUS_TEMPONLY;
1535 status = i_dladm_get_linkprop_db(handle, linkid,
1540 status = DLADM_STATUS_BADARG;
1544 if (status == DLADM_STATUS_OK) {
1550 status = DLADM_STATUS_NOMEM;
1552 status = pdp->pd_check(handle, pdp, linkid,
1554 if (status == DLADM_STATUS_OK) {
1570 status = DLADM_STATUS_FAILED;
1579 return (status);
1589 dladm_status_t status;
1609 status = dladm_set_linkprop(handle, linkid, prop_name, propvals,
1612 if (status != DLADM_STATUS_OK)
1613 dla->dla_status = status;
1627 dladm_status_t status;
1629 status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
1631 if (status != DLADM_STATUS_OK)
1644 dladm_status_t status = DLADM_STATUS_OK;
1666 status = dla->dla_status;
1669 return (status);
1680 dladm_status_t status;
1685 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
1687 if (status != DLADM_STATUS_OK)
1688 return (status);
1739 dladm_status_t status;
1749 status = dladm_linkid2legacyname(handle, linkid, name, MAXLINKNAMELEN);
1750 if (status != DLADM_STATUS_OK)
1759 status = dladm_errno2status(errno);
1764 status = dladm_errno2status(errno);
1769 return (status);
1815 dladm_status_t status = DLADM_STATUS_OK;
1824 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
1826 if (status != DLADM_STATUS_OK)
1827 return (status);
1841 if ((status = set_public_prop(handle, pdp, linkid, vdp, val_cnt,
1843 return (status);
1875 dladm_status_t status = DLADM_STATUS_OK;
1889 status = DLADM_STATUS_BADVAL;
1898 status = dladm_errno2status(errno);
1903 status = DLADM_STATUS_BADVAL;
1917 return (status);
1927 dladm_status_t status;
1929 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
1931 if (status != DLADM_STATUS_OK)
1932 return (status);
1994 dladm_status_t status;
1996 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
1998 if (status != DLADM_STATUS_OK)
1999 return (status);
2018 dladm_status_t status = DLADM_STATUS_OK;
2029 status = dladm_str2bw(*prop_val, maxbw);
2030 if (status != DLADM_STATUS_OK) {
2032 return (status);
2099 dladm_status_t status;
2104 status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
2106 if (status != DLADM_STATUS_OK)
2107 return (status);
2112 status = i_dladm_get_public_prop(handle, linkid, "etsbat", 0,
2114 if (status != DLADM_STATUS_OK)
2115 return (status);
2138 dladm_status_t status;
2146 status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
2148 if (status != DLADM_STATUS_OK)
2149 return (status);
2178 status = DLADM_STATUS_BADVAL;
2184 dip = i_dladm_buf_alloc_by_name(0, linkid, "etsbat", 0, &status);
2189 status = i_dladm_macprop(handle, dip, B_TRUE);
2194 return (status);
2204 dladm_status_t status;
2218 status = i_dladm_get_public_prop(handle, linkid, restype, flags,
2221 if (status != DLADM_STATUS_OK)
2222 return (status);
2323 dladm_status_t status;
2329 status = i_dladm_get_public_prop(handle, linkid,
2333 status = i_dladm_get_public_prop(handle, linkid,
2337 if (status != DLADM_STATUS_OK)
2338 return (status);
2346 status = dladm_list2range(mrp.mrp_cpu, mrp.mrp_ncpus,
2348 if (status != DLADM_STATUS_OK)
2349 return (status);
2387 dladm_status_t status = DLADM_STATUS_OK;
2390 status = i_dladm_get_public_prop(handle, linkid, "resource", 0,
2393 if (status == DLADM_STATUS_OK) {
2400 status = dladm_strs2range(prop_val, val_cnt, MAC_PROPVAL_UINT32,
2402 if (status != DLADM_STATUS_OK)
2407 status = dladm_range2list(pv_range, cpus, &ncpus);
2408 if (status != DLADM_STATUS_OK)
2420 status = DLADM_STATUS_NOMEM;
2429 status = DLADM_STATUS_BADCPUID;
2435 status = DLADM_STATUS_CPUERR;
2440 status = DLADM_STATUS_CPUNOTONLINE;
2451 status = DLADM_STATUS_DUPCPUID;
2464 status = DLADM_STATUS_OK;
2471 return (status);
2503 dladm_status_t status;
2507 status = i_dladm_get_public_prop(handle, linkid,
2511 if (status != DLADM_STATUS_OK)
2512 return (status);
2514 status = i_dladm_get_public_prop(handle, linkid,
2517 if (status != DLADM_STATUS_OK)
2518 return (status);
2579 dladm_status_t status;
2582 status = i_dladm_get_public_prop(handle, linkid,
2586 status = i_dladm_get_public_prop(handle, linkid,
2590 if (status != DLADM_STATUS_OK)
2591 return (status);
2612 dladm_status_t status;
2618 status = i_dladm_get_public_prop(handle, linkid, "resource", 0,
2621 if (status == DLADM_STATUS_OK) {
2688 dladm_status_t status;
2690 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
2692 if (status != DLADM_STATUS_OK)
2693 return (status);
2774 dladm_status_t status = DLADM_STATUS_OK;
2782 &status)) == NULL)
2783 return (status);
2785 status = i_dladm_macprop(handle, dip, B_FALSE);
2786 if (status != DLADM_STATUS_OK)
2787 return (status);
2818 return (status);
2829 dladm_status_t status;
2836 status = i_dladm_get_public_prop(handle, linkid,
2843 status = i_dladm_get_public_prop(handle, linkid, "rxrings",
2845 if (status != DLADM_STATUS_OK)
2846 return (status);
2848 status = i_dladm_get_public_prop(handle, linkid,
2852 if (status != DLADM_STATUS_OK)
2853 return (status);
2895 dladm_status_t status;
2903 status = i_dladm_get_public_prop(handle, linkid,
2910 status = i_dladm_get_public_prop(handle, linkid, "txrings",
2912 if (status != DLADM_STATUS_OK)
2913 return (status);
2918 status = i_dladm_get_public_prop(handle, linkid, "resource",
2922 if (status != DLADM_STATUS_OK)
2923 return (status);
2978 dladm_status_t status = DLADM_STATUS_OK;
2984 flags, &status);
2987 return (status);
2995 status = rp->rp_extract(vdp, val_cnt, &mrp);
2996 if (status != DLADM_STATUS_OK)
3005 status = i_dladm_macprop(handle, dip, B_TRUE);
3009 return (status);
3020 dladm_status_t status;
3023 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
3025 if (status != DLADM_STATUS_OK)
3026 return (status);
3065 dladm_status_t status;
3068 status = i_dladm_get_public_prop(handle, linkid, "lro",
3070 if (status != DLADM_STATUS_OK)
3071 return (status);
3077 return (status);
3086 dladm_status_t status;
3089 status = i_dladm_get_public_prop(handle, linkid, "lro-effective",
3091 if (status != DLADM_STATUS_OK)
3092 return (status);
3098 return (status);
3118 dladm_status_t status;
3126 status = dladm_datalink_id2info(handle, linkid, NULL, &class,
3128 if (status != DLADM_STATUS_OK)
3129 return (status);
3142 status = (len == -1) ? DLADM_STATUS_BADVAL :
3146 return (status);
3177 dladm_status_t status;
3180 status = dladm_datalink_id2info(handle, linkid, NULL, &class,
3182 if (status != DLADM_STATUS_OK)
3183 return (status);
3185 status = i_dladm_get_public_prop(handle, linkid, "mac-address",
3187 if (status != DLADM_STATUS_OK)
3188 return (status);
3250 dladm_status_t status;
3253 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
3255 if (status != DLADM_STATUS_OK)
3256 return (status);
3319 dladm_status_t status;
3324 status = dladm_str2ipv4addr(buf, &v4addr);
3325 if (status == DLADM_STATUS_INVALID_IP) {
3326 status = dladm_str2ipv6addr(buf, &v6addr);
3327 if (status == DLADM_STATUS_OK)
3330 if (status != DLADM_STATUS_OK)
3331 return (status);
3355 dladm_status_t status;
3366 status = DLADM_STATUS_NOMEM;
3371 status = check_single_ip(prop_val[i], addr);
3372 if (status != DLADM_STATUS_OK)
3382 return (status);
3642 dladm_status_t status;
3645 status = i_dladm_get_public_prop(handle, linkid, "resource", flags,
3647 if (status != DLADM_STATUS_OK)
3648 return (status);
3693 dladm_status_t status;
3704 status = DLADM_STATUS_NOMEM;
3709 status = dladm_str2cid(prop_val[i], cid);
3710 if (status != DLADM_STATUS_OK)
3720 return (status);
3731 dladm_status_t status;
3736 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
3738 if (status != DLADM_STATUS_OK)
3739 return (status);
3810 dladm_status_t status;
3829 status = i_dladm_add_ap_module(module, dlap);
3830 if (status != DLADM_STATUS_OK)
3831 return (status);
3852 dladm_status_t status = DLADM_STATUS_OK;
3858 status = i_dladm_wlan_param(handle, linkid, wrp, id, WLDP_BUFSIZE,
3860 if (status != DLADM_STATUS_OK)
3864 status = DLADM_STATUS_TOOSMALL;
3884 return (status);
3930 dladm_status_t status = DLADM_STATUS_OK;
3943 status = i_dladm_wlan_param(handle, linkid, wrp,
3947 return (status);
3956 dladm_status_t status;
3970 status = set_wlan_rate(handle, linkid, &rates);
3972 return (status);
3984 dladm_status_t status;
3995 status = DLADM_STATUS_NOMEM;
4005 status = get_rate_mod(handle, NULL, linkid, modval, &modval_cnt,
4007 if (status != DLADM_STATUS_OK)
4014 status = DLADM_STATUS_OK;
4019 status = DLADM_STATUS_BADVAL;
4022 return (status);
4041 dladm_status_t status;
4044 if ((status = get_phyconf(handle, linkid, buf, sizeof (buf)))
4046 return (status);
4067 dladm_status_t status;
4069 if ((status = i_dladm_wlan_param(handle, linkid, buf,
4071 return (status);
4133 dladm_status_t status;
4135 if ((status = i_dladm_wlan_param(handle, linkid, buf,
4137 return (status);
4237 dladm_status_t status;
4239 status = dladm_open_conf(handle, linkid, &conf);
4240 if (status != DLADM_STATUS_OK)
4241 return (status);
4247 status = dladm_unset_conf_field(handle, conf, prop_name);
4248 if (status == DLADM_STATUS_OK)
4249 status = dladm_write_conf(handle, conf, linkid);
4261 status = dladm_set_conf_field(handle, conf, prop_name, DLADM_TYPE_STR,
4263 if (status == DLADM_STATUS_OK)
4264 status = dladm_write_conf(handle, conf, linkid);
4268 return (status);
4278 dladm_status_t status;
4280 status = dladm_getsnap_conf(handle, linkid, &conf);
4281 if (status != DLADM_STATUS_OK)
4282 return (status);
4284 status = dladm_get_conf_field(handle, conf, prop_name, buf, MAXLINELEN);
4285 if (status != DLADM_STATUS_OK)
4291 status = DLADM_STATUS_TOOSMALL;
4302 return (status);
4312 dladm_status_t status;
4322 status = dladm_getsnap_conf(handle, linkid, &conf);
4323 if (status != DLADM_STATUS_OK)
4324 return (status);
4327 while ((status = dladm_getnext_conf_linkprop(handle, conf, last_attr,
4368 dladm_status_t *status)
4373 *status = DLADM_STATUS_OK;
4377 *status = DLADM_STATUS_NOMEM;
4391 const char *prop_name, uint_t flags, dladm_status_t *status)
4398 flags, status));
4403 mac_prop_id_t propid, uint_t flags, dladm_status_t *status)
4410 flags, status));
4420 dladm_status_t status = DLADM_STATUS_OK;
4426 dip = i_dladm_buf_alloc_by_name(0, linkid, pdp->pd_name, 0, &status);
4428 return (status);
4461 status = i_dladm_macprop(handle, dip, B_TRUE);
4465 return (status);
4471 dladm_status_t status = DLADM_STATUS_OK;
4476 status = dladm_errno2status(errno);
4478 return (status);
4486 dladm_status_t status;
4488 dip = i_dladm_buf_alloc_by_name(0, linkid, prop_name, flags, &status);
4492 status = i_dladm_macprop(handle, dip, B_FALSE);
4493 if (status != DLADM_STATUS_OK) {
4495 return (status);
4529 dladm_status_t status;
4531 if ((status = dladm_get_single_mac_stat(handle, linkid, "link_duplex",
4533 return (status);
4557 dladm_status_t status;
4559 if ((status = dladm_get_single_mac_stat(handle, linkid, "ifspeed",
4561 return (status);
4582 dladm_status_t status;
4584 status = dladm_get_state(handle, linkid, &link_state);
4585 if (status != DLADM_STATUS_OK)
4586 return (status);
4610 dladm_status_t status;
4613 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4615 if (status != DLADM_STATUS_OK)
4616 return (status);
4629 dladm_status_t status;
4648 status = i_dladm_get_public_prop(handle, linkid, restype,
4650 if (status != DLADM_STATUS_OK)
4651 return (status);
4676 dladm_status_t status;
4683 status = dladm_datalink_id2info(handle, linkid, NULL,
4685 if (status != DLADM_STATUS_OK)
4686 return (status);
4720 dladm_status_t status;
4723 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4725 if (status != DLADM_STATUS_OK)
4726 return (status);
4739 dladm_status_t status;
4742 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4744 if (status != DLADM_STATUS_OK)
4745 return (status);
4759 dladm_status_t status = DLADM_STATUS_OK;
4774 &status)) == NULL)
4775 return (status);
4780 status = i_dladm_macprop(handle, dip, B_FALSE);
4781 if (status != DLADM_STATUS_OK) {
4782 if (status == DLADM_STATUS_TOOSMALL) {
4790 status = dladm_errno2status(err);
4794 return (status);
4823 status = DLADM_STATUS_BADARG;
4828 return (status);
4838 dladm_status_t status;
4840 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4842 if (status != DLADM_STATUS_OK)
4843 return (status);
4866 dladm_status_t status;
4868 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
4870 if (status != DLADM_STATUS_OK)
4871 return (status);
4939 dladm_status_t status = DLADM_STATUS_OK;
4952 status = dladm_str2ipv6addr(prop_val[0], addr);
4953 if (status != DLADM_STATUS_OK)
4956 return (status);
5000 dladm_status_t status;
5003 status = i_dladm_get_public_prop(handle, linkid,
5006 if (status != DLADM_STATUS_OK)
5007 return (status);
5009 status = i_dladm_get_public_prop(handle, linkid, "resource",
5011 if (status != DLADM_STATUS_OK)
5012 return (status);
5032 dladm_status_t status;
5035 status = i_dladm_get_public_prop(handle, linkid,
5038 if (status != DLADM_STATUS_OK)
5039 return (status);
5041 status = i_dladm_get_public_prop(handle, linkid, "resource",
5043 if (status != DLADM_STATUS_OK)
5044 return (status);
5063 dladm_status_t status;
5066 status = i_dladm_get_public_prop(handle, linkid,
5069 if (status != DLADM_STATUS_OK)
5070 return (status);
5072 status = i_dladm_get_public_prop(handle, linkid, "resource",
5074 if (status != DLADM_STATUS_OK)
5075 return (status);
5094 dladm_status_t status;
5097 status = i_dladm_get_public_prop(handle, linkid,
5100 if (status != DLADM_STATUS_OK)
5101 return (status);
5103 status = i_dladm_get_public_prop(handle, linkid, "resource",
5105 if (status != DLADM_STATUS_OK)
5106 return (status);
5149 dladm_status_t status = DLADM_STATUS_OK;
5177 (prop_val != NULL ? 0 : DLD_PROP_DEFAULT), &status);
5179 return (status);
5185 status = i_dladm_macprop(handle, dip, B_FALSE);
5202 if (status == DLADM_STATUS_OK)
5203 status = i_dladm_macprop(handle, dip, B_TRUE);
5206 return (status);
5214 dladm_status_t status = DLADM_STATUS_OK;
5230 dld_flags, &status);
5232 return (status);
5234 if ((status = i_dladm_macprop(handle, dip, B_FALSE)) ==
5245 } else if ((status == DLADM_STATUS_NOTSUP) &&
5247 status = DLADM_STATUS_NOTFOUND;
5250 return (status);
5258 dladm_status_t status;
5290 status = pdp->pd_get(handle, pdp, linkid, prop_vals, &cnt, media,
5292 if (status == DLADM_STATUS_OK) {
5294 status = i_dladm_set_single_prop(handle, linkid,
5297 status = DLADM_STATUS_NOTSUP;
5300 return (status);
5475 dladm_status_t status;
5484 0, &status);
5486 return (status);
5487 status = i_dladm_macprop(handle, dip, B_FALSE);
5488 if (status == DLADM_STATUS_OK) {
5495 return (status);
5503 dladm_status_t status;
5508 0, &status);
5510 return (status);
5513 status = i_dladm_macprop(handle, dip, B_TRUE);
5515 if (status != DLADM_STATUS_OK)
5516 return (status);
5553 dladm_status_t status;
5558 linkid, MAC_PROP_VLAN_ANNOUNCE, 0, &status);
5560 return (status);
5563 status = i_dladm_macprop(handle, dip, B_TRUE);
5565 if (status != DLADM_STATUS_OK)
5566 return (status);
5578 dladm_status_t status;
5587 MAC_PROP_VLAN_ANNOUNCE, 0, &status);
5589 return (status);
5590 status = i_dladm_macprop(handle, dip, B_FALSE);
5591 if (status == DLADM_STATUS_OK) {
5602 return (status);
5611 dladm_status_t status;
5616 if ((status = dladm_datalink_id2info(handle, linkid, &flags, NULL,
5618 return (status);
5630 dip = i_dladm_buf_alloc_by_id(len, linkid, cmd, 0, &status);
5638 status = i_dladm_macprop(handle, dip, set);
5639 if (status == DLADM_STATUS_OK) {
5645 return (status);
5691 dladm_status_t status = DLADM_STATUS_OK;
5697 status = dladm_walk_linkprop(handle, linkid, list,
5701 return (status);
5712 dladm_status_t status;
5743 status = pdp->pd_check(handle, pdp, 0, aip->ai_val,
5746 status = DLADM_STATUS_BADARG;
5749 if (status != DLADM_STATUS_OK)
5750 return (status);
5760 status = rpp->rp_extract(vdp,
5763 status = DLADM_STATUS_BADARG;
5768 if (status != DLADM_STATUS_OK)
5769 return (status);
5773 return (status);
5783 dladm_status_t status;
5787 status = i_dladm_link_proplist_extract_one(handle,
5789 if (status != DLADM_STATUS_OK)
5790 return (status);
5792 return (status);
5855 dladm_status_t status = DLADM_STATUS_OK;
5897 return (status);
5908 dladm_status_t status;
5910 status = i_dladm_get_public_prop(handle, linkid, pdp->pd_name, flags,
5912 if (status != DLADM_STATUS_OK)
5913 return (status);