svn commit: samba r22808 - in branches/SAMBA_4_0/source/libnet: .

mimir at samba.org mimir at samba.org
Fri May 11 21:44:18 GMT 2007


Author: mimir
Date: 2007-05-11 21:44:18 +0000 (Fri, 11 May 2007)
New Revision: 22808

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

Log:
store default buffer size for samr operations in libnet context.
This allows not requiring it as an argument in some function calls
and still enables specifying any size if it's necessary via libnet
context.


rafal


Modified:
   branches/SAMBA_4_0/source/libnet/libnet.c
   branches/SAMBA_4_0/source/libnet/libnet.h


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet.c	2007-05-11 20:57:04 UTC (rev 22807)
+++ branches/SAMBA_4_0/source/libnet/libnet.c	2007-05-11 21:44:18 UTC (rev 22808)
@@ -47,7 +47,10 @@
 
 	/* connected services' params */
 	ZERO_STRUCT(ctx->samr);
-	ZERO_STRUCT(ctx->lsa);
+	ZERO_STRUCT(ctx->lsa);	
 
+	/* default buffer size for various operations requiring specifying a buffer */
+	ctx->samr.buf_size = 128;
+
 	return ctx;
 }

Modified: branches/SAMBA_4_0/source/libnet/libnet.h
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet.h	2007-05-11 20:57:04 UTC (rev 22807)
+++ branches/SAMBA_4_0/source/libnet/libnet.h	2007-05-11 21:44:18 UTC (rev 22808)
@@ -32,6 +32,7 @@
 		const char *name;
 		uint32_t access_mask;
 		struct policy_handle handle;
+		int buf_size;
 	} samr;
 
 	/* lsa connection parameters - opened handles and related properties */



More information about the samba-cvs mailing list