limiting number of received packets