summaryrefslogtreecommitdiffstats
path: root/src/server/net.c
diff options
context:
space:
mode:
authorSebastian Vater2025-08-19 16:53:14 +0200
committerSimon Rettberg2025-12-09 15:33:20 +0100
commit197f25c9c913940c87774c15bded85aa920be14b (patch)
treef3f9cd92be6532bdbc3064e2b1dc1d31e74ee28f /src/server/net.c
parent[SERVER] iscsi: Finish login handling, add NOP-In/Out handling (diff)
downloaddnbd3-197f25c9c913940c87774c15bded85aa920be14b.tar.gz
dnbd3-197f25c9c913940c87774c15bded85aa920be14b.tar.xz
dnbd3-197f25c9c913940c87774c15bded85aa920be14b.zip
[SERVER] iscsi: Hook into net.c, text response handling, more features:
- R2T handling - Portal groups - Fixes to login phase handling - Code refactoring - Remove obsolete PDU fields - SCSI INQUIRY handler - Persistent Reservation support - Implement SCSI block based operations - Implement other needed SCSI ops - Disks are now reported as read-only - Doxygen tags - Bugfixes for crashes, memleaks, etc.
Diffstat (limited to 'src/server/net.c')
-rw-r--r--src/server/net.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/net.c b/src/server/net.c
index eb51d29..a279b02 100644
--- a/src/server/net.c
+++ b/src/server/net.c
@@ -20,6 +20,7 @@
#include "helper.h"
#include "image.h"
+#include "iscsi.h"
#include "uplink.h"
#include "locks.h"
#include "rpc.h"
@@ -178,6 +179,7 @@ void* net_handleNewConnection(void *clientPtr)
// Close enough...
rpc_sendStatsJson( client->sock, &client->host, &request, ret );
} else {
+ iscsi_connection_handle( client, &request, ret );
logadd( LOG_DEBUG1, "Magic in client handshake incorrect" );
}
goto fail_preadd;