mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 03:16:03 +00:00
PPP: ppp_init() is not a public function, moving it in private part
ppp_init() is not a public fonction anymore, move this function in ppp.c "private" functions.
This commit is contained in:
parent
c8c0dc2f53
commit
bd29f7168c
@ -225,18 +225,6 @@ static int ppp_write_over_l2tp(ppp_pcb *pcb, struct pbuf *p);
|
||||
/*** PUBLIC FUNCTION DEFINITIONS ***/
|
||||
/***********************************/
|
||||
|
||||
/* Initialize the PPP subsystem. */
|
||||
int ppp_init(void) {
|
||||
|
||||
/*
|
||||
* Initialize magic number generator now so that protocols may
|
||||
* use magic numbers in initialization.
|
||||
*/
|
||||
magic_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) {
|
||||
|
||||
#if PAP_SUPPORT
|
||||
@ -522,6 +510,18 @@ int ppp_free(ppp_pcb *pcb) {
|
||||
/*** PRIVATE FUNCTION DEFINITIONS ***/
|
||||
/************************************/
|
||||
|
||||
/* Initialize the PPP subsystem. */
|
||||
int ppp_init(void) {
|
||||
|
||||
/*
|
||||
* Initialize magic number generator now so that protocols may
|
||||
* use magic numbers in initialization.
|
||||
*/
|
||||
magic_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Create a new PPP session.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user