PPP, PPPoS, added sub-ioctl commands

Allow low level drivers to extend ioctl call, moved PPPoS ioctl
commands to pppos.c.
This commit is contained in:
Sylvain Rochet
2015-02-20 00:01:05 +01:00
parent ec362536f5
commit 729e24da78
6 changed files with 28 additions and 19 deletions

View File

@@ -163,6 +163,8 @@ struct link_callbacks {
void (*recv_config)(ppp_pcb *pcb, void *ctx, u32_t accm);
/* configure TCP header compression */
void (*vj_config)(ppp_pcb *pcb, void *ctx, int vjcomp, int cidcomp, int maxcid);
/* Get and set parameters for the given connection. */
int (*ioctl)(ppp_pcb *pcb, void *ctx, int cmd, void *arg);
};
/*

View File

@@ -102,7 +102,6 @@ void pppos_input(ppp_pcb *ppp, u_char* data, int len);
*
* You may use them if you REALLY know what you are doing.
*/
sio_fd_t pppos_get_fd(pppos_pcb *pppos);
int pppos_vjc_comp(pppos_pcb *pppos, struct pbuf *pb);
int pppos_vjc_uncomp(pppos_pcb *pppos, struct pbuf *pb);