Lines Matching refs:status
66 dladm_status_t status = DLADM_STATUS_OK;
72 status = (ioctl(dladm_dld_fd(handle), cmd, dp) == 0) ?
74 if (status != DLADM_STATUS_TRYAGAIN)
77 return (status);
88 dladm_status_t status;
110 status = i_iptun_ioctl(handle, IPTUN_INFO, &tmpik);
111 if (status != DLADM_STATUS_OK)
112 return (status);
223 dladm_status_t status = DLADM_STATUS_OK;
227 status = i_iptun_ioctl(handle, IPTUN_INFO, &ik);
228 if (status == DLADM_STATUS_OK)
229 status = i_iptun_params(&ik, params);
230 return (status);
242 dladm_status_t status;
248 if ((status = dladm_datalink_id2info(handle, params->iptun_param_linkid,
250 return (status);
254 if ((status = dladm_getsnap_conf(handle, params->iptun_param_linkid,
256 return (status);
261 if ((status = dladm_get_conf_field(handle, conf, IPTUN_CONF_TYPE, &temp,
279 return (status);
286 dladm_status_t status = DLADM_STATUS_OK;
292 if ((status = i_iptun_kparams(handle, params, &ik)) == DLADM_STATUS_OK)
293 status = i_iptun_ioctl(handle, IPTUN_CREATE, &ik);
294 return (status);
302 dladm_status_t status;
305 status = dladm_create_conf(handle, name, params->iptun_param_linkid,
307 if (status != DLADM_STATUS_OK)
308 return (status);
312 status = dladm_set_conf_field(handle, conf, IPTUN_CONF_TYPE,
314 if (status != DLADM_STATUS_OK)
318 status = dladm_set_conf_field(handle, conf, IPTUN_CONF_LADDR,
320 if (status != DLADM_STATUS_OK)
325 status = dladm_set_conf_field(handle, conf, IPTUN_CONF_RADDR,
327 if (status != DLADM_STATUS_OK)
331 status = dladm_write_conf(handle, conf, params->iptun_param_linkid);
335 return (status);
341 dladm_status_t status;
343 status = i_iptun_ioctl(handle, IPTUN_DELETE, &linkid);
344 if (status != DLADM_STATUS_OK)
345 return (status);
354 dladm_status_t status;
356 if ((status = i_iptun_kparams(handle, params, &ik)) == DLADM_STATUS_OK)
357 status = i_iptun_ioctl(handle, IPTUN_MODIFY, &ik);
358 return (status);
365 dladm_status_t status;
377 status = dladm_open_conf(handle, params->iptun_param_linkid, &conf);
378 if (status != DLADM_STATUS_OK)
379 return (status);
382 status = dladm_set_conf_field(handle, conf, IPTUN_CONF_LADDR,
384 if (status != DLADM_STATUS_OK)
389 status = dladm_set_conf_field(handle, conf, IPTUN_CONF_RADDR,
391 if (status != DLADM_STATUS_OK)
395 status = dladm_write_conf(handle, conf, params->iptun_param_linkid);
399 return (status);
406 dladm_status_t status;
427 status = dladm_create_datalink_id(handle, name, DATALINK_CLASS_IPTUN,
429 if (status != DLADM_STATUS_OK)
430 return (status);
433 status = i_iptun_create_db(handle, name, params, media);
434 if (status != DLADM_STATUS_OK)
439 status = i_iptun_create_sys(handle, params);
440 if (status != DLADM_STATUS_OK && (flags & DLADM_OPT_PERSIST)) {
447 if (status != DLADM_STATUS_OK) {
451 return (status);
457 dladm_status_t status;
461 if ((status = dladm_datalink_id2info(handle, linkid, NULL, &class, NULL,
463 return (status);
475 status = i_iptun_delete_sys(handle, linkid);
476 if (status != DLADM_STATUS_OK &&
477 (status != DLADM_STATUS_NOTFOUND ||
479 return (status);
494 dladm_status_t status = DLADM_STATUS_OK;
511 status = i_iptun_get_dbparams(handle, &old_params);
512 if (status != DLADM_STATUS_OK)
513 return (status);
517 status = i_iptun_modify_db(handle, params);
518 if (status != DLADM_STATUS_OK)
519 return (status);
523 status = i_iptun_modify_sys(handle, params);
524 if (status != DLADM_STATUS_OK && (flags & DLADM_OPT_PERSIST)) {
529 return (status);
548 dladm_status_t status;
552 status = dladm_up_datalink_id(handle, linkid);
553 if (status != DLADM_STATUS_OK)
560 if ((status = i_iptun_get_dbparams(handle, ¶ms)) == DLADM_STATUS_OK)
561 status = i_iptun_create_sys(handle, ¶ms);
564 *statusp = status;
565 if (status != DLADM_STATUS_OK && id_up) {
576 dladm_status_t status;
578 status = i_iptun_delete_sys(handle, linkid);
580 *statusp = status;
588 dladm_status_t status = DLADM_STATUS_OK;
595 (void) i_iptun_up(handle, linkid, &status);
597 return (status);
603 dladm_status_t status = DLADM_STATUS_OK;
610 (void) i_iptun_down(handle, linkid, &status);
612 return (status);