PPP, cleaned MTU,MRU variables

This commit is contained in:
Sylvain Rochet
2012-09-01 19:44:43 +02:00
parent 387c778496
commit af56eebc6a
2 changed files with 3 additions and 7 deletions

View File

@@ -2219,7 +2219,6 @@ int sifup(ppp_pcb *pcb) {
netif_ip6_addr_set_state(&pcb->netif, 0, IP6_ADDR_PREFERRED);
#endif /* PPP_IPV6_SUPPORT */
pcb->netif.mtu = netif_get_mtu(pcb);
netif_set_up(&pcb->netif);
pcb->if_up = 1;
pcb->err_code = PPPERR_NONE;
@@ -2261,7 +2260,7 @@ int sifnpmode(ppp_pcb *pcb, int proto, enum NPmode mode) {
*/
void netif_set_mtu(ppp_pcb *pcb, int mtu) {
pcb->mtu = mtu;
pcb->netif.mtu = mtu;
}
/*
@@ -2269,7 +2268,7 @@ void netif_set_mtu(ppp_pcb *pcb, int mtu) {
*/
int netif_get_mtu(ppp_pcb *pcb) {
return pcb->mtu;
return pcb->netif.mtu;
}
/********************************************************************