mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-01-01 03:16:03 +00: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
|
||||
* (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.
|
||||
|
@ -237,10 +237,6 @@ int ppp_init(void) {
|
||||
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) {
|
||||
|
||||
#if PAP_SUPPORT
|
||||
|
Loading…
Reference in New Issue
Block a user