catching reset sequence so that we can output details about how the packet looks; for live logging

This commit is contained in:
Jason_DiDonato@yahoo.com 2021-03-23 12:14:56 -04:00
parent 873f19db5e
commit 5c169e1ca7

View file

@ -176,6 +176,8 @@ object PacketCoding {
if (flags.secured && crypto.isEmpty) {
return Failure(Err("Unsupported packet type: crypto packets must be unencrypted"))
}
case PacketType.ResetSequence =>
return Failure(Err(s"Caught a wild ResetSequence when cryptoState is ${crypto.nonEmpty}: $msg -> $flags and $remainder"))
case _ =>
return Failure(Err(s"Unsupported packet type: ${flags.packetType.toString}"))
}