Lines Matching defs:hostaddr
235 char *hostaddr;
257 free(req->hostaddr);
324 {"hostaddr", offsetof(struct rpc_bdev_nvme_attach_controller, hostaddr), spdk_json_decode_string, true},
520 if (ctx->req.hostaddr) {
522 len = strnlen(ctx->req.hostaddr, maxlen);
524 spdk_jsonrpc_send_error_response_fmt(request, -EINVAL, "hostaddr too long: %s",
525 ctx->req.hostaddr);
528 snprintf(ctx->req.drv_opts.src_addr, maxlen, "%s", ctx->req.hostaddr);
715 char *hostaddr;
728 free(req->hostaddr);
739 {"hostaddr", offsetof(struct rpc_bdev_nvme_detach_controller, hostaddr), spdk_json_decode_string, true},
834 if (req.hostaddr) {
835 maxlen = sizeof(path.hostid.hostaddr);
836 len = strnlen(req.hostaddr, maxlen);
838 spdk_jsonrpc_send_error_response_fmt(request, -EINVAL, "hostaddr too long: %s",
839 req.hostaddr);
842 snprintf(path.hostid.hostaddr, maxlen, "%s", req.hostaddr);