Added get type of packet from packet.  And test for it.
Added get type of packet from packet.  And test for it.