From ec565c8a19ff957166080fabd9c524bb821b2121 Mon Sep 17 00:00:00 2001 From: Ivan Delamer Date: Fri, 28 Oct 2011 14:23:20 -0600 Subject: [PATCH] Conditional compilation in ppp.c according to PPP_ options. Change-Id: I466ce2b0114c9428f5e21bd0a09bb221f40bfc3e --- src/netif/ppp/ppp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 3838fcf2..73661346 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -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.