mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-04 13:34:38 +08:00

PPP peer can negotiate its MRU, therefore we don't know the MTU we are going to use before starting PPP. This is an issue because netif_add function assume that the netif init callback function will set the MTU, netif_add will then copy mtu to mtu6. We have then to update mtu6 each time we update mtu to keep them in sync. Doing so is fine because PPP netif MTU is only updated when the netif is in link down state.