mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-16 14:11:02 +00:00
Conditional compilation in ppp.c according to PPP_ options.
Change-Id: I466ce2b0114c9428f5e21bd0a09bb221f40bfc3e
This commit is contained in:
parent
0b382a0d53
commit
ec565c8a19
@ -172,7 +172,9 @@ typedef struct PPPControlRx_s {
|
||||
/** the rx file descriptor */
|
||||
sio_fd_t fd;
|
||||
/** receive buffer - encoded data is stored here */
|
||||
#if PPP_INPROC_OWNTHREAD
|
||||
u_char rxbuf[PPPOS_RX_BUFSIZE];
|
||||
#endif
|
||||
|
||||
/* The input packet. */
|
||||
struct pbuf *inHead, *inTail;
|
||||
@ -1737,6 +1739,7 @@ pppDrop(PPPControlRx *pcrx)
|
||||
snmp_inc_ifindiscards(&pppControl[pcrx->pd].netif);
|
||||
}
|
||||
|
||||
#if !PPP_INPROC_OWNTHREAD
|
||||
/** Pass received raw characters to PPPoS to be decoded. This function is
|
||||
* thread-safe and can be called from a dedicated RX-thread or from a main-loop.
|
||||
*
|
||||
@ -1749,6 +1752,7 @@ pppos_input(int pd, u_char* data, int len)
|
||||
{
|
||||
pppInProc(&pppControl[pd].rx, data, len);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Process a received octet string.
|
||||
|
Loading…
Reference in New Issue
Block a user