Added response mask

Each bit of the mask tells whether a response field has been allocated.
Request mask comment
memset for response mask field