mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-25 07:33:11 +00:00
Conditional compilation in ppp.c according to PPP_ options.
Change-Id: I466ce2b0114c9428f5e21bd0a09bb221f40bfc3e
This commit is contained in:
parent
21333d0f18
commit
09d1f55bce
@ -172,7 +172,9 @@ typedef struct PPPControlRx_s {
|
|||||||
/** the rx file descriptor */
|
/** the rx file descriptor */
|
||||||
sio_fd_t fd;
|
sio_fd_t fd;
|
||||||
/** receive buffer - encoded data is stored here */
|
/** receive buffer - encoded data is stored here */
|
||||||
|
#if PPP_INPROC_OWNTHREAD
|
||||||
u_char rxbuf[PPPOS_RX_BUFSIZE];
|
u_char rxbuf[PPPOS_RX_BUFSIZE];
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The input packet. */
|
/* The input packet. */
|
||||||
struct pbuf *inHead, *inTail;
|
struct pbuf *inHead, *inTail;
|
||||||
@ -1737,6 +1739,7 @@ pppDrop(PPPControlRx *pcrx)
|
|||||||
snmp_inc_ifindiscards(&pppControl[pcrx->pd].netif);
|
snmp_inc_ifindiscards(&pppControl[pcrx->pd].netif);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !PPP_INPROC_OWNTHREAD
|
||||||
/** Pass received raw characters to PPPoS to be decoded. This function is
|
/** 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.
|
* 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);
|
pppInProc(&pppControl[pd].rx, data, len);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Process a received octet string.
|
* Process a received octet string.
|
||||||
|
Loading…
Reference in New Issue
Block a user