Hastings’ six wickets restrict Sri Lanka to 212