refactor flow_inbound
refactor send_out_packet -> send_packet_out