Always return 0 if read_packet is successful.