clear code, and reserve 2 byte length as packet header  --- linux version