Fixed build_ip_packet