Define control packet types as an enum.

Signed-off-by: OGINO Masanori <masanori.ogino@gmail.com>