summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/lua.c
AgeCommit message (Collapse)Author
2018-06-01ipoe: lua: introduced ipaddr field to session objectDmitry Kozlov
2018-05-31ipoe: lua: introduced hwaddr field to session objectDmitry Kozlov
example function to use mac address as username: function username(ses) return ses:hwaddr() end
2017-10-13improved lua supportDmitry Kozlov
Implemented support for lua 5.2/5.3. To build accel-ppp with exact lua version pass it in -DLUA=x.y, for example -DLUA=5.2 (cmake 3.0 is required for this). Old style -DLUA=TRUE supports only 5.1 and does not require cmake 3.0. Also extra lua modules (lua_lpack, lua_bit) took out into separated library luasupp.
2017-04-04ipoe: included lua bitop libraryDmitry Kozlov
Included bitop library http://bitop.luajit.org/index.html It may be used to extract vlan components in username function: function username(ses) vid=ses:vlan() svid=bit.rshift(vid,16) cvid=bit.band(vid,0xffff) ... end
2017-03-28Revert "ipoe: fix lua 5.3 support"Dmitry Kozlov
This reverts commit b72efa378b32980f2114bcb8081fafbd93096aa0.
2017-03-27ipoe: fix lua 5.3 supportDmitry Kozlov
2016-12-07ipoe: lua: add "vlan" field to session objectDmitry Kozlov
resulting value is vlan | (parent_vlan << 16)
2016-03-14ipoe: fixed compilation with luaDmitry Kozlov
2015-12-01ipoe: implemented ability to use lua to make vlan nameDmitry Kozlov
[ipoe] vlan-name=lua:make_vlan_name lua function accepts three arguments: parent interface name, parent vlan number and vlan number caused vlan creation sample lua function: function make_vlan_name(ifname, svid, cvid) print('make_vlan_name: '..ifname..','..svid..','..cvid) return ifname..'.'..cvid end
2015-04-18ipoe: don't block lua script if it raises errorDmitry Kozlov
2014-11-22remove trailing whitespacesDmitry Kozlov
2014-07-17improved 'single session' mechanismDmitry Kozlov
2014-05-18improved single-session=replace handlingDmitry Kozlov
Wait for previous session completely terminated before continuing authorization new session.
2014-04-11ipoe:lua: update thread-specific value when updating L (fixes segfault)Dmitry Kozlov
Signed-off-by: Dmitry Kozlov <xeb@mail.ru>
2013-10-02ipoe: lua: check for session is dhcpDmitry Kozlov
2012-08-03ipoe: implemented dhcp relayKozlov Dmitry
2012-06-26ipoe: futher workingKozlov Dmitry
2012-06-22initial ipoe implementationKozlov Dmitry