server/tun-slip: Refactor state handling somewhat.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 22 May 2010 11:04:06 +0000 (12:04 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 22 May 2010 11:44:25 +0000 (12:44 +0100)
commit574318e731155b6922d7b1dba1461f30ea664e9f
tree7e77054ba783215401f8b02d3d07c3d23cb79a93
parentb476642f0ecdb981d9f0183fb5421082d90d9071
server/tun-slip: Refactor state handling somewhat.

Introduce a new ST_MASK which masks off the state-machine bits.  Use this
when reading SL_END or when setting ST_EOF, so as to preserve any other
state bits which might happen to have been set.  Not that I'm promising
anything...
server/tun-slip.c