Code style cleanup.
Rename mask_bits and fix static_assert().
Add comment about max packet sequence number.
Mark method as override correctly.