Modify packet loop
Avoid warnings on fixed width integers