I assume this is the length of the entire record, minus the header e.g. 18 03 03 for tls1.2? Would be good to add it as a comment.