⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 iscsi-protocol.h

📁 ISCSI user client software.Client would be used to access the IPSAN server.
💻 H
字号:
/* * iSCSI driver for Linux * Copyright (C) 2001 Cisco Systems, Inc. * 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-protocol.h,v 1.12 2005/01/11 03:47:11 mikenc Exp $  * * This file sets up definitions of messages and constants used by the * iSCSI protocol. */#ifndef ISCSI_PROTOCOL_H_#define ISCSI_PROTOCOL_H_#include "iscsi.h"/* iSCSI listen port for incoming connections */#define ISCSI_LISTEN_PORT 3260/* assumes a pointer to a 3-byte array */#define ntoh24(p) (((p)[0] << 16) | ((p)[1] << 8) | ((p)[2]))/* assumes a pointer to a 3 byte array, and an integer value */#define hton24(p, v) {\        p[0] = (((v) >> 16) & 0xFF); \        p[1] = (((v) >> 8) & 0xFF); \        p[2] = ((v) & 0xFF); \}/* for Login min, max, active version fields */#define ISCSI_MIN_VERSION	ISCSI_DRAFT20_VERSION#define ISCSI_MAX_VERSION	ISCSI_DRAFT20_VERSION/* Min. and Max. length of a PDU we can support */#define MIN_PDU_LENGTH		(8 << 9)	/* 4KB */#define MAX_PDU_LENGTH		(0xffffffff)	/* Huge *//* Padding word length */#define PAD_WORD_LEN		4/* Max. number of Key=Value pairs in a text message */#define MAX_KEY_VALUE_PAIRS	8192/* maximum length for text keys/values */#define KEY_MAXLEN		64#define VALUE_MAXLEN		255#define TARGET_NAME_MAXLEN	VALUE_MAXLEN#define DEFAULT_MAX_RECV_DATA_SEGMENT_LENGTH	8192#endif

⌨️ 快捷键说明

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