l2_ping: use unsigned as counter variable