summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp.c
AgeCommit message (Collapse)Author
2022-03-04ppp_chan_read: check unit_hnd avoiding proto rejGabriel Jeanneau
When receiving IPCP packet on channel handler, check unit handler to avoid sending a LCP Protocol Reject because ppp unit has not been created yet. This patch allows accel-ppp to handle higher pressure (handle 300 connections per second). Signed-off-by: Gabriel Jeanneau <gabriel.jeanneau@6wind.com>
2020-03-18ppp: reset the ifindex when moving back to the default namespaceSimon Chopin
If you move an interface into a namespace where there is alreay an interface with the same index, the moved interface will get a new index assigned to it. We need to update our data structure accordingly. Signed-off-by: Simon Chopin <s.chopin@alphalink.fr>
2018-01-31ppp: fix mtu/mru negotiation in preallocate/unit-cache modesVladislav Grishenko
2018-01-24ppp: fixed bug in ppp_terminateDmitry Kozlov
2016-07-14ppp: code simplificationDmitry Kozlov
2016-07-14ppp: fix bug when using unit cache with interfaces in another netnsFrançois Cachereul
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
2016-07-14Revert "ppp: futher improvement of distablish_ppp function"François Cachereul
This reverts commit 07ca3acb40df7668cfd0c6abbdcefc21d944d993. Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
2016-07-09ppp: ignore zero read on chan fdDmitry Kozlov
2016-07-04ppp: ignore zero read on unit fdDmitry Kozlov
2016-06-25ppp: introduced unit-preallocate optionDmitry Kozlov
If set to 1 then allocate unit (interface) before authorization, so Nas-Port and Nas-Port-Id would be defined in Access-Request phase
2016-04-17preparation for DPDK intergation (part 7)Dmitry Kozlov
2016-04-13ppp: increase input buffer sizeDmitry Kozlov
2016-03-19ppp: futher improvement of distablish_ppp functionDmitry Kozlov
2016-03-19ppp: fix bug introduced by d392ccd024f9243bf5df8e242a5b0cb6a85876baDmitry Kozlov
2016-03-19ppp: fix bug introduced by "call ap_session_finished before actual interface ↵Dmitry Kozlov
destroing"
2016-03-18ppp: call ap_session_finished before actual interface destroingDmitry Kozlov
2015-12-04preparation for DPDK intergation (part 5)Dmitry Kozlov
2015-12-04preparation for DPDK intergation (part 2)Dmitry Kozlov
2015-11-18ipoe: do not send immediate Accounting Stop in soft terminate modeDmitry Kozlov
2015-03-05ppp: fix mtu/mru set if not negotiated on any end plus cleanupVladislav Grishenko
2015-02-27ppp: set interface's ifndex after unit creatingDmitry Kozlov
2015-02-20ppp: set unit_idx from NAS_Port attribute if presentFrançois Cachereul
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
2015-02-20ppp: create ppp units after authenticationFrançois Cachereul
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>
2015-02-20ppp: set mtu and mru after unit creationFrançois Cachereul
In the following patch PPP unit will be created after MRU negotation. Signed-off-by: François Cachereul <f.cachereul@alphalink.fr>
2014-10-29ppp: improve establish_ppp() exit on errorFrançois Cachereul
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr> Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
2014-10-29ppp: fix indent and remove unnecessary tabs and braces in ppp.cFrançois Cachereul
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr> Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
2014-10-23ppp: rename interface back when put it into unit cacheDmitry Kozlov
2014-10-22ppp: implemented delayed unit close via unit cacheDmitry Kozlov
Due to kernel slowly destroys interfaces closing unit file descriptor blocks working threads which causes overall stuck. Thus (if unit-cache option is not zero) do not close unit file descriptor immediatly, but put it into unit cache. Additional helper thread was introduced which closes descriptors from unit cache which overruns configured unit cache size.
2014-09-20rewrite of authentication/accounting proceduresDmitry Kozlov
This patch gets rid of synchronuos style of authentication/accounting. Synchronous style of authentication/accounting produced sleeping threads which becomes a problem when lots of sessions started/stopped and all they want authorization/accounting.
2014-05-12triton: improved epoll events handlingDmitry Kozlov
2013-01-25Fix boolean options parsing in configuration fileGuillaume Nault
Explicitely interpret zero values when parsing boolean options. This allows to unset boolean parameters such as "verbose" when reloading the configuration. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
2013-01-25session: read final interface statistics on terminationKozlov Dmitry
2013-01-25Revert "session: read final interface statistics on termination"Kozlov Dmitry
This reverts commit 3bff891eac97037c633be960b822c688e8629165.
2013-01-25session: read final interface statistics on terminationKozlov Dmitry
2013-01-25Revert "altered session finishing procedure"Kozlov Dmitry
This reverts commit 9f4f36169f03857b6910402028717210270a0339.
2013-01-24altered session finishing procedureKozlov Dmitry
2013-01-24generalize single-session checkingKozlov Dmitry
2012-08-29fix various typosKozlov Dmitry
2012-06-19general preparation for IPoE integrationKozlov Dmitry
2012-06-05ppp: implemented unit cacheKozlov Dmitry
If enabled accel-pppd will not destroy interface immediately after corresponding session is terminated, instead interface will be brought down and placed to cache for later use for new sessions. It should reduce kernel interface creation/deletion rate lack and increase responsibility of daemon
2012-06-04Revert "implemented delayed fd close (speeds up session termination process)"Kozlov Dmitry
Low interface creation/deletion rate is kernel issue and should be fixed in 3.5. This reverts commit 9ae4a0151805229face3385e6c966de90c7fec29.
2012-05-28implemented delayed fd close (speeds up session termination process)Kozlov Dmitry
2012-05-14pppd_compat: use EV_PPP_PRE_FINISHED event to start ip-down script (fixes ↵Kozlov Dmitry
unexpected radattr file removal)
2012-03-15Revert "ppp: move ip address release to proper place"Kozlov Dmitry
This reverts commit d77729c3d6d4e646e0eb629a81faca90d61eea0c.
2012-03-14ppp: move ip address release to proper placeKozlov Dmitry
2012-01-13set FD_CLOEXEC on opened file descriptorsKozlov Dmitry
2011-12-27radius, ippool: implemented Framed-Pool attributeKozlov Dmitry
2011-09-10ppp: don't start ccp after ipcp was startedKozlov Dmitry
2011-09-03implemented crypto library selection: -DCRYPTO=OPENSSL|TOMCRYPT|INTERNAL ↵Kozlov Dmitry
(default OPENSSL)
2011-08-29fix incorrect ppp_terminate callsKozlov Dmitry