set hdr_len