diff --git a/src/include/netif/ppp/ppp.h b/src/include/netif/ppp/ppp.h index 8ad4bc22..4046fd26 100644 --- a/src/include/netif/ppp/ppp.h +++ b/src/include/netif/ppp/ppp.h @@ -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. diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 8c9d8a38..a314da7c 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -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