PPP, CORE, don't build get_loop_output() if demand support (not supported) is not enabled

This commit is contained in:
Sylvain Rochet 2015-03-21 20:12:14 +01:00
parent 4463239d6e
commit c17594c1d0
2 changed files with 4 additions and 1 deletions

View File

@ -482,7 +482,9 @@ int ccp_fatal_error(ppp_pcb *pcb);
int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip);
#endif /* PPP_IDLETIMELIMIT */
#if DEMAND_SUPPORT
int get_loop_output(void);
#endif /* DEMAND_SUPPORT */
u32_t get_mask(u32_t addr);

View File

@ -1142,6 +1142,7 @@ int get_idle_time(ppp_pcb *pcb, struct ppp_idle *ip) {
}
#endif /* PPP_IDLETIMELIMIT */
#if DEMAND_SUPPORT
/********************************************************************
*
* 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.
*/
int get_loop_output(void) {
/* FIXME: necessary for "demand", do we really need to support on-demand ? */
return 0;
}
#endif /* DEMAND_SUPPORT */
/********************************************************************
*