moved route_packet to ip.h/c