Added a fourth parameter to the dnspacket() function.