summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/lua.c
AgeCommit message (Collapse)Author
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-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-29Revert "ipoe: fix lua 5.3 support"Dmitry Kozlov
This reverts commit 5159276962e4305db249bbbf5eb589ec59b9e318.
2017-03-27ipoe: fix lua 5.3 supportDmitry Kozlov
2017-03-27ipoe: 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