Protecting against network infections: A game theoretic perspective