PPP, PPPoS, check if PPPoS configuration functions are used on PPPoS

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.
This commit is contained in:
Sylvain Rochet
2015-02-16 22:44:23 +01:00
parent d93c21349f
commit f98f2890f3
2 changed files with 33 additions and 0 deletions

View File

@@ -45,6 +45,7 @@
*/
typedef struct pppos_pcb_s pppos_pcb;
struct pppos_pcb_s {
pppos_pcb *next;
ppp_pcb *ppp; /* PPP PCB */
sio_fd_t fd; /* File device ID of port. */
#if VJ_SUPPORT