Compare packet type with equals(), just in case.