iscsi-login.h
来自「这个linux源代码是很全面的~基本完整了~使用c编译的~由于时间问题我没有亲自」· C头文件 代码 · 共 52 行
H
52 行
#ifndef ISCSI_LOGIN_H_#define ISCSI_LOGIN_H_/* * iSCSI driver for Linux * Copyright (C) 2001 Cisco Systems, Inc. * maintained by linux-iscsi@cisco.com * * 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-login.h,v 1.6 2002/10/08 20:05:45 smferris Exp $ * * iscsi-login.h * * include for iSCSI login * */#include "iscsi-platform.h"#include "iscsi-protocol.h"#include "iscsi-session.h"#define ISCSI_SESSION_TYPE_NORMAL 0#define ISCSI_SESSION_TYPE_DISCOVERY 1/* not defined by iSCSI, but used in the login code to determine when to send the initial Login PDU */#define ISCSI_INITIAL_LOGIN_PHASE -1#define ISCSI_TEXT_SEPARATOR '='/* implemented in iscsi-login.c for use on all platforms */extern struct IscsiHdr *iscsi_align_pdu(iscsi_session_t *session, unsigned char *buffer, int buffersize);extern int iscsi_make_text_pdu(iscsi_session_t *session, struct IscsiHdr *text_pdu, char *data, int max_data_length);extern int iscsi_make_login_pdu(iscsi_session_t *session, struct IscsiHdr *text_pdu, char *data, int max_data_length);extern int iscsi_add_text(iscsi_session_t *session, struct IscsiHdr *pdu, char *data, int max_data_length, char *param, char *value);extern int iscsi_login(iscsi_session_t *session, char *buffer, size_t bufsize, uint8_t *status_class, uint8_t *status_detail);#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?