Remove duplicate get_last_sender() from source.
Restore check_packets() definition in header.
Add some parens because compiler.