Lines Matching refs:status

158 	dladm_status_t status;
161 if ((status = dladm_create_flowconf(handle, name, attrp->fi_linkid))
163 return (status);
167 status = dladm_datalink_id2info(handle, attrp->fi_linkid, NULL,
169 if (status != DLADM_STATUS_OK)
171 status = dladm_set_flowconf_field(handle, name, FLINKOVER,
173 if (status != DLADM_STATUS_OK)
180 status = dladm_set_flowconf_field(handle, name, FMAXBW,
182 if (status != DLADM_STATUS_OK)
188 status = dladm_set_flowconf_field(handle, name, FDSFIELD,
190 if (status != DLADM_STATUS_OK)
193 status = dladm_set_flowconf_field(handle, name, FDSFIELD_MASK,
195 if (status != DLADM_STATUS_OK)
203 status = dladm_set_flowconf_field(handle, name, FLOCAL_IP_ADDR,
205 if (status != DLADM_STATUS_OK)
214 status = dladm_set_flowconf_field(handle, name, FREMOTE_IP_ADDR,
216 if (status != DLADM_STATUS_OK)
223 status = dladm_set_flowconf_field(handle, name, FTRANSPORT,
225 if (status != DLADM_STATUS_OK)
232 status = dladm_set_flowconf_field(handle, name, FLOCAL_PORT,
234 if (status != DLADM_STATUS_OK)
242 status = dladm_set_flowconf_field(handle, name, FREMOTE_PORT,
244 if (status != DLADM_STATUS_OK)
251 status = dladm_write_flowconf(handle, name, root);
253 return (status);
263 dladm_status_t status = DLADM_STATUS_OK;
278 status = dladm_errno2status(errno);
280 if (status != DLADM_STATUS_OK) {
282 status = dladm_flow_diag2status(ioc.af_diag);
284 return (status);
292 dladm_status_t status = DLADM_STATUS_OK;
298 status = dladm_errno2status(errno);
300 return (status);
308 dladm_status_t status = DLADM_STATUS_OK;
314 status = dladm_errno2status(errno);
315 return (status);
327 dladm_status_t status;
332 if (attrlist != NULL && (status = dladm_flow_attrlist_extract(attrlist,
334 return (status);
338 if (proplist != NULL && (status = dladm_flow_proplist_extract(proplist,
340 return (status);
344 status = i_dladm_flow_add(handle, flowname, linkid, &flowdesc, &mrp);
345 if (status != DLADM_STATUS_OK || tempop)
346 return (status);
356 if ((status = i_dladm_flow_create_db(handle, flowname, &db_attr, root))
360 return (status);
364 return (status);
375 dladm_status_t status = DLADM_STATUS_OK;
390 status = dladm_read_flowconf(handle, fname, &onloan);
391 if (status == DLADM_STATUS_OK && onloan)
395 status = i_dladm_flow_remove(handle, fname, zoneid);
397 return (status);
409 if (status == DLADM_STATUS_NOTFOUND)
410 status = s;
413 status = s;
416 return (status);
443 dladm_status_t status = DLADM_STATUS_OK;
453 dladm_status_t status;
480 status = dladm_get_flownext(handle, flowname, next_zid,
482 if (status != DLADM_STATUS_OK &&
484 return (status);
485 if (status == DLADM_STATUS_OK) {
498 status = dladm_datalink_id2linkinfo
501 if (status == DLADM_STATUS_NOTFOUND)
510 } else if (status == DLADM_STATUS_NOTFOUND &&
526 status = dladm_read_flowconf(handle, flowname,
528 if (status != DLADM_STATUS_OK)
553 status = dladm_errno2status(errno);
554 return (status);
613 return (status);
619 dladm_status_t status = DLADM_STATUS_OK;
628 status = dladm_get_flownext(handle, flowname, zoneid, &flowinfo,
630 if (status != DLADM_STATUS_OK) {
631 return (status == DLADM_STATUS_NOTFOUND ?
632 DLADM_STATUS_OK : status);
643 if ((status = i_dladm_flow_add(handle, flowinfo.fi_flowname,
646 status = DLADM_STATUS_OK;
647 if (status != DLADM_STATUS_OK)
648 return (status);
651 return (status);
657 dladm_status_t status = DLADM_STATUS_OK;
666 status = dladm_get_flownext(handle, flowname, zoneid, &flowinfo,
668 if (status != DLADM_STATUS_OK)