demand support is now a compile-time option

Obviously, it requires some wiring to know if there is new activity
on a not-yet established PPP interface with the default route
already set.

I don't think any lwIP user will ever need that, all should know
when to bring the link up and down.
This commit is contained in:
Sylvain Rochet
2012-06-02 00:53:25 +02:00
parent ee5fca7a2b
commit 8b866beaeb
10 changed files with 35 additions and 5 deletions

View File

@@ -105,8 +105,10 @@ struct protent pap_protent = {
pap_option_list,
NULL,
#endif /* PPP_OPTIONS */
#if DEMAND_SUPPORT
NULL,
NULL
#endif /* DEMAND_SUPPORT */
};
upap_state upap[NUM_PPP]; /* UPAP state; one for each unit */