Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-10-17 | radius: implemented lua support | Dmitry Kozlov | |
to get radius object use session:module("radius") function radius object provides flollowing functions: radius:attrs() - returns array of attributes {"name" = NAME, "vendor" = VENDOR|nil} radius:attr(name[,vendor]) - returns value of attribute (may return multiple results) Example: function ip_up(ses) rad = ses:module("radius") attrs = rad:attrs() if attrs then print("attrs:") for _,a in pairs(attrs) do io.write("\t") if a.vendor then io.write(a.vendor..":") end io.write(a.name.."=") print(rad:attr(a.name, a.vendor)) end end end | |||
2017-10-09 | radius: split request queue to 2 subqueues | Dmitry Kozlov | |
1 - is high priority queue for Access-Request and Account-Request(Start) 2 - is low priority queue for Account-Request(Alive) and Account-Request(Stop) This patch intended to prioritize sessions connecting requests over disconnects and interim updates. | |||
2016-12-10 | radius: extended support for freeradius dictionaries | Dmitry Kozlov | |
2016-07-09 | radius: do not execute interface rename immediately, store new name for ↵ | Dmitry Kozlov | |
later use Bacause interface may not still exists in authentication phase | |||
2016-06-25 | radius: do not send NAS-Port and NAS-Port-Id if they are undefined | Dmitry Kozlov | |
2016-06-07 | Merge branch 'master' of ssh://git.code.sf.net/p/accel-ppp/code | Dmitry Kozlov | |
2016-06-07 | radius: update Session-Timeout by CoA | Dmitry Kozlov | |
2016-06-02 | radius: initialise ipv6db addresses completely | Guillaume Nault | |
The 'installed' bit of the allocated ipv6db_addr_t structure needs to be initialised. This is because ap_session_ifdown() reads this bit to know if the address or route needs to be removed from the kernel. The 'installed' bit is set by ap_session_accounting_started() and the ND and DHCPV6 protocol handlers, but disconnection could happen before these steps. Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> | |||
2016-05-31 | Fixup - don't divide on unchecked values. Multiply instead. | Mihail Vasilev | |
2016-04-30 | radius: add Delegated-IPv6-Prefix to accounting packets | Dmitry Kozlov | |
2016-04-06 | radius: do not mark request as active if send function fails | Dmitry Kozlov | |
2016-03-18 | ipoe: implemented new option "start=auto" | Dmitry Kozlov | |
If start=auto is specified then accel-pppd automatically starts session with username = interface name on shared=0 interfaces. Use it with conjuction vlan_mon. So any packet may start session. | |||
2016-01-03 | Update packet.c | liguojiang | |
radius server error packet may be coredump. | |||
2016-01-03 | radius: implemented handling of Framed-Route attribute | Dmitry Kozlov | |
Framed-Route has following syntax: Framed-Route=address[/mask] [gateway] If gateway is not specified then route would be attached to session interface. | |||
2015-02-21 | radius: override session's idle and timeout timers values by Idle-Timeout ↵ | Dmitry Kozlov | |
and Session-Timeout attributes | |||
2015-02-20 | ppp: set unit_idx from NAS_Port attribute if present | François Cachereul | |
Signed-off-by: François Cachereul <f.cachereul@alphalink.fr> | |||
2014-11-22 | remove trailing whitespaces | Dmitry Kozlov | |
2014-11-11 | radius: add missing log_switch | Dmitry Kozlov | |
2014-11-10 | radius: disable read handler when put req into wait queue (fixes race ↵ | Dmitry Kozlov | |
conditions) | |||
2014-11-10 | radius: fixed bug | Dmitry Kozlov | |
2014-11-05 | radius: early ipv6_dp assignment | Dmitry Kozlov | |
2014-10-29 | radius: fix call to memset on rdp->auth_ctx | François Cachereul | |
The mistake was revealed by gcc 4.9.0 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-28 | radius: fixed server reallocation for timed out requests | Dmitry Kozlov | |
2014-10-23 | radius: fixed stuck during shutdown when radius server does not respond | Dmitry Kozlov | |
2014-10-23 | radius: introduced max-fail option | Dmitry Kozlov | |
Before this patch any single fail (no responce for max_try requests) caused radius server to enter "fail" state, which may be unwanted behaviour, because radius may not respond for interim Accounting-Request by some reasons. This patch introduces "max-fail" option which specifies number of unreplied requests in a row after which server enters into "fail" state. (Actual only for multi-server configurations) | |||
2014-10-23 | radius: fixed backup radius selection | Dmitry Kozlov | |
2014-10-23 | radius: fixed server reallocation for queued requests if current server does ↵ | Dmitry Kozlov | |
not respond | |||
2014-10-22 | radius: check for previous request was finished in interim update timer | Dmitry Kozlov | |
2014-10-06 | radius: fixed Accounting-On/Accounting-Off functionality | Dmitry Kozlov | |
2014-10-04 | radius: various bug fixes | Dmitry Kozlov | |
2014-10-03 | get rid of time(), use clock_gettime(CLOCK_MONOTONIC) instead | Dmitry Kozlov | |
2014-09-30 | radius: fixed handling deferred requests | Dmitry Kozlov | |
2014-09-26 | radius: cancel starting accounting request if session terminated before ↵ | Dmitry Kozlov | |
server replied | |||
2014-09-23 | radius: fixed counting of active requests | Dmitry Kozlov | |
2014-09-22 | fixed compilation warnings | Dmitry Kozlov | |
2014-09-20 | rewrite of authentication/accounting procedures | Dmitry 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-08-25 | radius: delete timeout timer if request sending fails (fixes double server ↵ | Dmitry Kozlov | |
release) | |||
2014-08-04 | radius: terminate session if read interfaces statistics fails | Dmitry Kozlov | |
2014-08-01 | radius: close socket after receiving accounting response | Dmitry Kozlov | |
2014-07-24 | radius: exit from active interim request when termination event occures | Dmitry Kozlov | |
2014-07-17 | radius: check for reply id is equal request id in interim requests | Dmitry Kozlov | |
2014-07-11 | radius: fixed handling socket errors during interim updates | Dmitry Kozlov | |
2014-06-17 | radius: introduced attr-tunnel-type option | Dmitry Kozlov | |
If specified then accel-ppp will send tunnel type as string (pppoe,pptp,l2tp,ipoe). | |||
2014-06-17 | auth_mschap,radius: fixed improper passing MS-CHAP-Error, Reply-Message to ↵ | Dmitry Kozlov | |
auth modules Passed strings was not nullterminated | |||
2014-06-03 | make IPv4 address to string conversions endian friendly | Dmitry Kozlov | |
2014-05-13 | radius: introduced weight and backup per-server options | Dmitry Kozlov | |
New options are applied to server option as server=...[,weight=x][,backup] Weight is used for multi-server configurations (larger weight takes more users). Backup is used to mark backup server f.e. server which will be used only if all other servers are failed. | |||
2014-05-12 | radius: use NAS-Port-Id in Access-Accept for interface renaming | Dmitry Kozlov | |
2014-05-12 | radius: add support for Nas-Port-Id attribute (interface name) | Dmitry Kozlov | |
2014-05-12 | radius: close socket after receiving accounting reply | Dmitry Kozlov | |
2014-05-12 | radius: release auth request immediatly after get responce | Dmitry Kozlov | |
There is no need to keep auth request structure in memory during whole session life time. It wastes memory and file descriptors |