refactor two functions:prepare_rip_packet and send_rip_packet,make it convenient to apply split horizon