gathdlc: Try to detect no carrier conditions
authorDenis Kenzior <denkenz@gmail.com>
Mon, 28 Feb 2011 20:24:39 +0000 (14:24 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 28 Feb 2011 22:13:56 +0000 (16:13 -0600)
commit0dc8e5e588d7f12a9836582bf8b41a31572a7271
tree8f3e6429d6ce373ea213621acd75db8b89395826
parentef2c133281e3d5c474da190b84d9de38da32802c
gathdlc: Try to detect no carrier conditions

Sometimes we receive the no carrier embedded in a stream following the
PPP packets.  This might be due to write scheduling on the remote side
or read scheduling locally.  Try not to consume the no carrier condition
and assume the previous hdlc frames will result in closing of the ppp
stack.
gatchat/gathdlc.c
gatchat/gathdlc.h