mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
PPP, CORE, don't build get_loop_output() if demand support (not supported) is not enabled
This commit is contained in:
parent
4463239d6e
commit
c17594c1d0
@ -482,7 +482,9 @@ int ccp_fatal_error(ppp_pcb *pcb);
|
|||||||
int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip);
|
int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip);
|
||||||
#endif /* PPP_IDLETIMELIMIT */
|
#endif /* PPP_IDLETIMELIMIT */
|
||||||
|
|
||||||
|
#if DEMAND_SUPPORT
|
||||||
int get_loop_output(void);
|
int get_loop_output(void);
|
||||||
|
#endif /* DEMAND_SUPPORT */
|
||||||
|
|
||||||
u32_t get_mask(u32_t addr);
|
u32_t get_mask(u32_t addr);
|
||||||
|
|
||||||
|
@ -1142,6 +1142,7 @@ int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip) {
|
|||||||
}
|
}
|
||||||
#endif /* PPP_IDLETIMELIMIT */
|
#endif /* PPP_IDLETIMELIMIT */
|
||||||
|
|
||||||
|
#if DEMAND_SUPPORT
|
||||||
/********************************************************************
|
/********************************************************************
|
||||||
*
|
*
|
||||||
* get_loop_output - get outgoing packets from the ppp device,
|
* get_loop_output - get outgoing packets from the ppp device,
|
||||||
@ -1149,9 +1150,9 @@ int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip) {
|
|||||||
* Return value is 1 if we need to bring up the link, 0 otherwise.
|
* Return value is 1 if we need to bring up the link, 0 otherwise.
|
||||||
*/
|
*/
|
||||||
int get_loop_output(void) {
|
int get_loop_output(void) {
|
||||||
/* FIXME: necessary for "demand", do we really need to support on-demand ? */
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif /* DEMAND_SUPPORT */
|
||||||
|
|
||||||
/********************************************************************
|
/********************************************************************
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user