Merge packet helpers.

Signed-off-by: Clienthax <clienthax@gmail.com>