peek_packet.c: add overall timer to guarantee proper timeout