mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-23 06:41:08 +00:00
unused ifunit global variable removed
This commit is contained in:
parent
21653f0f91
commit
2ec79c03a0
@ -1824,7 +1824,7 @@ ipcp_up(f)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ho->hisaddr == 0 && !noremoteip) {
|
if (ho->hisaddr == 0 && !noremoteip) {
|
||||||
ho->hisaddr = htonl(0x0a404040 + ifunit);
|
ho->hisaddr = htonl(0x0a404040);
|
||||||
warn("Could not determine remote IP address: defaulting to %I",
|
warn("Could not determine remote IP address: defaulting to %I",
|
||||||
ho->hisaddr);
|
ho->hisaddr);
|
||||||
}
|
}
|
||||||
|
@ -156,8 +156,6 @@ int unsuccess; /* # unsuccessful connection attempts */
|
|||||||
int listen_time; /* time to listen first (ms) */
|
int listen_time; /* time to listen first (ms) */
|
||||||
int status; /* exit status for pppd */
|
int status; /* exit status for pppd */
|
||||||
int need_holdoff; /* need holdoff period before restarting */
|
int need_holdoff; /* need holdoff period before restarting */
|
||||||
/* FIXME: remove ifunit */
|
|
||||||
int ifunit; /* Interface unit number */
|
|
||||||
|
|
||||||
/* FIXME: outpacket_buf per PPP session */
|
/* FIXME: outpacket_buf per PPP session */
|
||||||
|
|
||||||
@ -367,7 +365,6 @@ int ppp_init(void) {
|
|||||||
listen_time = 0;
|
listen_time = 0;
|
||||||
status = EXIT_OK;
|
status = EXIT_OK;
|
||||||
need_holdoff = 1;
|
need_holdoff = 1;
|
||||||
ifunit = 1; /* FIXME: remove ifunit */
|
|
||||||
#if PPP_STATS_SUPPORT
|
#if PPP_STATS_SUPPORT
|
||||||
link_stats_valid = 0;
|
link_stats_valid = 0;
|
||||||
#endif /* PPP_STATS_SUPPORT */
|
#endif /* PPP_STATS_SUPPORT */
|
||||||
|
@ -272,8 +272,6 @@ extern int unsuccess; /* # unsuccessful connection attempts */
|
|||||||
extern int listen_time; /* time to listen first (ms) */
|
extern int listen_time; /* time to listen first (ms) */
|
||||||
extern int status; /* exit status for pppd */
|
extern int status; /* exit status for pppd */
|
||||||
extern int need_holdoff; /* Need holdoff period after link terminates */
|
extern int need_holdoff; /* Need holdoff period after link terminates */
|
||||||
/* FIXME: remove ifunit */
|
|
||||||
extern int ifunit; /* Interface unit number */
|
|
||||||
extern u_char outpacket_buf[]; /* Buffer for outgoing packets */
|
extern u_char outpacket_buf[]; /* Buffer for outgoing packets */
|
||||||
|
|
||||||
/* FIXME: add more HAVE_MULTILINK */
|
/* FIXME: add more HAVE_MULTILINK */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user