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

@@ -436,10 +436,12 @@ struct protent {
/* Check requested options, assign defaults */
void (*check_options) __P((void));
#endif /* PPP_OPTIONS */
#if DEMAND_SUPPORT
/* Configure interface for demand-dial */
int (*demand_conf) __P((int unit));
/* Say whether to bring up link for this pkt */
int (*active_pkt) __P((u_char *pkt, int len));
#endif /* DEMAND_SUPPORT */
};
/* Table of pointers to supported protocols */