svn commit: samba r3993 - in branches/SAMBA_4_0/source/ntvfs/ipc: .

tridge at samba.org tridge at samba.org
Mon Nov 29 06:18:59 GMT 2004


Author: tridge
Date: 2004-11-29 06:18:58 +0000 (Mon, 29 Nov 2004)
New Revision: 3993

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=3993

Log:
use distinctive fnums in the ipc backend, to make monitoring sniffs easier


Modified:
   branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c


Changeset:
Modified: branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c
===================================================================
--- branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c	2004-11-29 04:24:50 UTC (rev 3992)
+++ branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c	2004-11-29 06:18:58 UTC (rev 3993)
@@ -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 @@
 		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;
 	}



More information about the samba-cvs mailing list