iscsi-portal.h

来自「iSCSI协议在LINUX下的源码.源代码是IBM公布的.主要是结合其OSD设备」· C头文件 代码 · 共 66 行

H
66
字号
/* * iSCSI driver for Linux * Copyright (C) 2001 Cisco Systems, Inc. * Copyright (C) 2004 Mike Christie * Copyright (C) 2004 IBM Corporation * maintained by linux-iscsi-devel@lists.sourceforge.net * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * See the file COPYING included with this distribution for more details. * * $Id: iscsi-portal.h,v 1.15 2005/01/19 22:50:36 mikenc Exp $ * * portal info structure used in ioctls and the kernel module */#ifndef ISCSI_PORTAL_H_#define ISCSI_PORTAL_H_#include <linux/socket.h>struct iscsi_session;/* * iscsi_portal_info - contains the values userspace had * requested. This differs from the session duplicates * as they are the values we negotiated with the target */struct iscsi_portal_info {	int	login_timeout;	int	auth_timeout;	int	active_timeout;	int	idle_timeout;	int	ping_timeout;	int	abort_timeout;	int	reset_timeout;	int	replacement_timeout;	int	initial_r2t;	int	immediate_data;	int	max_recv_data_segment_len;	int	first_burst_len;	int	max_burst_len;	int	def_time2wait;	int	def_time2retain;	int	header_digest;	int	data_digest;	int	tag;	int	tcp_window_size;	int	type_of_service;	/* support ipv4 when we finish the interface */	struct sockaddr addr;};extern void iscsi_set_portal_info(struct iscsi_session *session);extern void iscsi_set_portal(struct iscsi_session *session);extern int iscsi_update_portal_info(struct iscsi_portal_info *old,				    struct iscsi_portal_info *new);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?