add a new packet queue implementation by C language