udp: introduce a udp_hashfn function