change packet flags