s3-dceprc: Improve dcerpc_guess_sizes() interface
authorSimo Sorce <idra@samba.org>
Fri, 30 Jul 2010 17:12:35 +0000 (13:12 -0400)
committerSimo Sorce <idra@samba.org>
Fri, 30 Jul 2010 18:55:28 +0000 (14:55 -0400)
commit4c64e4d4af3403559b370381d7f14a83a39adfa7
tree4a4cd97dd4250297f219fd5b041c062ddf20f355
parent3469fbc5e4098e798a03d14fece24fde2b60d9b9
s3-dceprc: Improve dcerpc_guess_sizes() interface

Make it possible to pass in the NDR padding size so that theoretically
client and server code can decide to use a different alignment.

Pass in the header length as a parameter so that this function can be used for
different type of packets.

Make sure padding size will not make the fragment exceed the maximum length.

Calculate padding taking in account the header length.
source3/librpc/rpc/dcerpc.h
source3/librpc/rpc/dcerpc_helpers.c
source3/rpc_client/cli_pipe.c