mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-06 22:44:38 +08:00
PPP: using a macro for ppp_set_default() instead of a function
This function is only calling netif_set_default(), a macro is adequate.
This commit is contained in:
parent
17c6be6a9b
commit
c8c0dc2f53
@ -473,7 +473,7 @@ struct ppp_pcb_s {
|
|||||||
* Set a PPP interface as the default network interface
|
* Set a PPP interface as the default network interface
|
||||||
* (used to output all packets for which no specific route is found).
|
* (used to output all packets for which no specific route is found).
|
||||||
*/
|
*/
|
||||||
void ppp_set_default(ppp_pcb *pcb);
|
#define ppp_set_default(ppp) netif_set_default(ppp->netif)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set auth helper, optional, you can either fill ppp_pcb->settings.
|
* Set auth helper, optional, you can either fill ppp_pcb->settings.
|
||||||
|
@ -237,10 +237,6 @@ int ppp_init(void) {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ppp_set_default(ppp_pcb *pcb) {
|
|
||||||
netif_set_default(pcb->netif);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) {
|
void ppp_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd) {
|
||||||
|
|
||||||
#if PAP_SUPPORT
|
#if PAP_SUPPORT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user