changed parameters for resendpackets.