summaryrefslogtreecommitdiff
path: root/accel-pppd/session.c
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/session.c
parent44d70d146370ba2bb88ab0c8d2fad60deca696ab (diff)
downloadaccel-ppp-e4b4e0eef7fe04f7c202177cee82aa5ed4829387.tar.gz
accel-ppp-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/session.c')
0 files changed, 0 insertions, 0 deletions