diff options
author | Rob Austein <sra@hactrn.net> | 2017-04-11 08:46:43 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-04-11 08:46:43 -0400 |
commit | 5291c46a6d43813af6a1a59dcecda03229869004 (patch) | |
tree | 2b1e1eca1c6629401fbb5d35ec4a22595ca2243f | |
parent | 482cc1a5f135e5c6f66f124ec134e6423fbae115 (diff) |
Log packet drops.
-rwxr-xr-x | cryptech_muxd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cryptech_muxd b/cryptech_muxd index dacf889..dc20b62 100755 --- a/cryptech_muxd +++ b/cryptech_muxd @@ -164,10 +164,13 @@ class RPCIOStream(SerialIOStream): q.put_nowait(None) return logger.debug("RPC recv: %s", ":".join("{:02x}".format(ord(c)) for c in reply)) + if reply == SLIP_END: + continue try: handle = client_handle_get(slip_decode(reply)) queue = self.queues[handle] except: + logger.debug("RPC skipping bad packet") continue logger.debug("RPC queue put: handle 0x%x, qsize %s, maxsize %s", handle, queue.qsize(), queue.maxsize) |