Fix issue#1, use int type for table, packet and priority