prioritizepacket function return value fixed