gsi: added support for BAD frames

support SSL frames with size of 2^16