add build_udp_header api signature

Reviewer: trivial