From 7c636fd2fe0a115999411cd2d67dbe8d421d49fd Mon Sep 17 00:00:00 2001 From: Rafal Szczesniak Date: Fri, 11 May 2007 21:44:18 +0000 Subject: r22808: 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 (This used to be commit 3e4b0c5b3b6d6bd155c8ce11b2342f4af08342f6) --- source4/libnet/libnet.c | 5 ++++- source4/libnet/libnet.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'source4/libnet') diff --git a/source4/libnet/libnet.c b/source4/libnet/libnet.c index 24e291b6f8..9f971b59cd 100644 --- a/source4/libnet/libnet.c +++ b/source4/libnet/libnet.c @@ -47,7 +47,10 @@ struct libnet_context *libnet_context_init(struct event_context *ev) /* 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; } diff --git a/source4/libnet/libnet.h b/source4/libnet/libnet.h index b3660af702..c852c205c6 100644 --- a/source4/libnet/libnet.h +++ b/source4/libnet/libnet.h @@ -32,6 +32,7 @@ struct libnet_context { const char *name; uint32_t access_mask; struct policy_handle handle; + int buf_size; } samr; /* lsa connection parameters - opened handles and related properties */ -- cgit