PPP, add PPPoS CB for PPPoS private data

Created a new PPPoS CB going to have PPPoS private data, so allocating a
PPPoE or a PPPoL2TP interface does not allocate as well PPPoS variables.
This commit is contained in:
Sylvain Rochet
2015-02-15 22:44:57 +01:00
parent 9c15ffbb74
commit ea205f2fcd
5 changed files with 61 additions and 24 deletions

View File

@@ -39,6 +39,14 @@
#include "ppp.h"
/*
* PPPoS interface control block.
*/
typedef struct pppos_pcb_s pppos_pcb;
struct pppos_pcb_s {
ppp_pcb *ppp; /* PPP PCB */
};
/* Create a new PPPoS session. */
ppp_pcb *ppp_over_serial_create(struct netif *pppif, sio_fd_t fd,
ppp_link_status_cb_fn link_status_cb, void *ctx_cb);