[lwip-devel] [ppp-new]function ppp_clear() will clean pppos input thread
From:
韩辉
Subject:
[lwip-devel] [ppp-new]function ppp_clear() will clean pppos input thread file descriptor.
Date:
Fri, 24 Aug 2012 23:13:52 +0800 (CST)
Hi
Sylvain Rochet
If I use pppos, the input thread "ppp_input_thread()" use "pcrx->fd" as tty file descriptor. then I called ppp_reopen(), the ppp_clear() will use memset() clean all memory of the ppp_pcb following ppp-> phase, so pcrx->fd will be 0.