Move UDP probe reply code into its own function.