Skeleton for checking type of packet