properly set max_packet_size from new header