secnet robustness: tolerate SLIP decoding errors

Simon Tatham anakin at
Tue Jun 25 18:44:34 BST 2013

As discussed with Ian on Sunday, I attach a patch to secnet which
makes it stop treating SLIP decoding failures as fatal error
conditions worthy of assertion failure or secnet termination, and
instead logs them and resynchronises at the next packet boundary.

(I've recently been running secnet with gdb attached in order to track
down a behavioural oddity, and have noticed that gdb suspending the
secnet process tends to have the side effect that corruptions can
appear in the SLIP stream after it's restarted; presumably some data
got lost when the kernel got impatient. Therefore, Ian suggested that
such corruption should no longer be an assertion-failure condition.)

Simon Tatham         "A cynic is a person who smells flowers and
<anakin at>    immediately looks around for a coffin."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-slip-tolerate-SLIP-decoding-errors.patch
Type: text/x-diff
Size: 3732 bytes
Desc: not available
URL: <>

More information about the sgo-software-discuss mailing list