summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-29 06:18:58 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:12 -0500
commit96f4d9815346edbb277583d417b4a8ae6c1c0a09 (patch)
tree52975fd92a9a17fe9f9018024dea6b7a7ae61150 /source4/ntvfs
parentb393de7f051dd339946b73251f818ad8c8601ba9 (diff)
downloadsamba-96f4d9815346edbb277583d417b4a8ae6c1c0a09.tar.gz
samba-96f4d9815346edbb277583d417b4a8ae6c1c0a09.tar.bz2
samba-96f4d9815346edbb277583d417b4a8ae6c1c0a09.zip
r3993: use distinctive fnums in the ipc backend, to make monitoring sniffs easier
(This used to be commit 54209ed05686a442156f7927c58d8656aa5e4900)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/ipc/vfs_ipc.c4
1 files changed, 3 insertions, 1 deletions
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;
}