Note that it's not possible to write a couple of frame types for packet numbers that don't fit into 6 bytes. The IETF QUIC draft fixes this.