add build_udp_header api signature