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

We don't have callbacks which can be set or cleared for PPPoS configuration, there is too much callbacks to create and PPPoS must be kept light, therefore PPPoS functions can be called when PPP core configure a PPPoE or PPPoL2TP interface, this is very unlikely to happens because protocols not supported by PPPoE or PPPoL2TP are disabled at LCP/IPCP negotiation but being safe is still better. Check if passed PPP pointer to PPPoS configuration functions is a PPPoS interface by using a linked list of exiting PPPoS interfaces.