From 96f4d9815346edbb277583d417b4a8ae6c1c0a09 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 29 Nov 2004 06:18:58 +0000 Subject: r3993: use distinctive fnums in the ipc backend, to make monitoring sniffs easier (This used to be commit 54209ed05686a442156f7927c58d8656aa5e4900) --- source4/ntvfs/ipc/vfs_ipc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source4') diff --git a/source4/ntvfs/ipc/vfs_ipc.c b/source4/ntvfs/ipc/vfs_ipc.c index a53accd533..b4c41d58d3 100644 --- a/source4/ntvfs/ipc/vfs_ipc.c +++ b/source4/ntvfs/ipc/vfs_ipc.c @@ -30,6 +30,8 @@ #include "dlinklist.h" #include "smb_server/smb_server.h" +#define IPC_BASE_FNUM 0x400 + /* this is the private structure used to keep the state of an open ipc$ connection. It needs to keep information about all open pipes */ @@ -196,7 +198,7 @@ static NTSTATUS ipc_open_generic(struct ntvfs_module_context *ntvfs, return NT_STATUS_NO_MEMORY; } - fnum = idr_get_new(private->idtree_fnum, p, UINT16_MAX); + fnum = idr_get_new_above(private->idtree_fnum, p, IPC_BASE_FNUM, UINT16_MAX); if (fnum == -1) { return NT_STATUS_TOO_MANY_OPENED_FILES; } -- cgit