summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp.h
diff options
context:
space:
mode:
authorFrançois Cachereul <f.cachereul@alphalink.fr>2015-01-27 12:07:01 +0100
committerDmitry Kozlov <xeb@mail.ru>2015-02-20 11:21:41 +0300
commite4b4e0eef7fe04f7c202177cee82aa5ed4829387 (patch)
tree50c1f9e8bfd325e161f9d6ab89c38e419cec3bf2 /accel-pppd/ppp/ppp.h
parent44d70d146370ba2bb88ab0c8d2fad60deca696ab (diff)
downloadaccel-ppp-xebd-e4b4e0eef7fe04f7c202177cee82aa5ed4829387.tar.gz
accel-ppp-xebd-e4b4e0eef7fe04f7c202177cee82aa5ed4829387.zip
ppp: create ppp units after authentication
This avaid allocating a ppp unit when authentication failed Split establish_ppp in two functions estabish_ppp and connect_ppp_channel. The fist one connect the channel on an instance of /dev/ppp, allocate channel resources and start first ppp layer. The second functions create ppp unit and connect the channel to this unit. It is called after authentication. destablish_ppp is also split in two function for symmetry and ppp_terminate is adapted to handle the case when the unit is not created. Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
Diffstat (limited to 'accel-pppd/ppp/ppp.h')
-rw-r--r--accel-pppd/ppp/ppp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ppp/ppp.h b/accel-pppd/ppp/ppp.h
index 759e114..dfceacc 100644
--- a/accel-pppd/ppp/ppp.h
+++ b/accel-pppd/ppp/ppp.h
@@ -96,6 +96,7 @@ struct ppp_handler_t
void ppp_init(struct ppp_t *ppp);
int establish_ppp(struct ppp_t *ppp);
+int connect_ppp_channel(struct ppp_t *ppp);
int ppp_chan_send(struct ppp_t *ppp, void *data, int size);
int ppp_unit_send(struct ppp_t *ppp, void *data, int size);
void lcp_send_proto_rej(struct ppp_t *ppp, uint16_t proto);