/* calculate the size of the SMB message based on the fixed header portion, the number of word parameters and the data portion of the message  */
unsigned int smbCalcSize(struct smb_hdr *ptr)
/* calculate the size of the SMB message based on the fixed header portion, the number of word parameters and the data portion of the message  */
unsigned int smbCalcSize(struct smb_hdr *ptr)
{
	return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) +
		2 + BCC(ptr));
}