// SPDX-License-Identifier: GPL-2.0-or-later/******************************************************************************* * This file contains the login functions used by the iSCSI Target driver. * * (c) Copyright 2007-2013 Datera, Inc. * * Author: Nicholas A. Bellinger <nab@linux-iscsi.org> * ******************************************************************************/#include<crypto/hash.h>#include<linux/module.h>#include<linux/string.h>#include<linux/kthread.h>#include<linux/sched/signal.h>#include<linux/idr.h>#include<linux/tcp.h> /* TCP_NODELAY */#include<net/ip.h>#include<net/ipv6.h> /* ipv6_addr_v4mapped() */#include<scsi/iscsi_proto.h>#include<target/target_core_base.h>#include<target/target_core_fabric.h>#include<target/iscsi/iscsi_target_core.h>#include<target/iscsi/iscsi_target_stat.h>#include"iscsi_target_device.h"#include"iscsi_target_nego.h"#include"iscsi_target_erl0.h"#include"iscsi_target_erl2.h"#include"iscsi_target_login.h"#include"iscsi_target_tpg.h"#include"iscsi_target_util.h"#include"iscsi_target.h"#include"iscsi_target_parameters.h"#include<target/iscsi/iscsi_transport.h>staticstructiscsi_login*iscsi_login_init_conn(structiscsi_conn*conn){structiscsi_login*login;login=kzalloc(sizeof(structiscsi_login),GFP_KERNEL);if(!login){pr_err("Unable to allocate memory for struct iscsi_login.\n");returnNULL;}conn->login=login;login->conn=conn;login->first_request=1;login->req_buf= <