<feed xmlns='http://www.w3.org/2005/Atom'>
<title>accel-ppp.git/accel-pppd/ctrl/ipoe/lua.c, branch show-sessions-mtu-mru</title>
<subtitle>High performance PPTP/L2TP/SSTP/PPPoE/IPoE server for Linux (mirror of https://github.com/marekm72/accel-ppp.git)
</subtitle>
<id>https://git.amelek.net/marekm72/accel-ppp.git/atom?h=show-sessions-mtu-mru</id>
<link rel='self' href='https://git.amelek.net/marekm72/accel-ppp.git/atom?h=show-sessions-mtu-mru'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/'/>
<updated>2018-06-01T07:50:58+00:00</updated>
<entry>
<title>ipoe: lua: introduced ipaddr field to session object</title>
<updated>2018-06-01T07:50:58+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2018-06-01T07:50:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=ac8e3062dd7c9f3b9d6b4c88ac34f005e9644468'/>
<id>urn:sha1:ac8e3062dd7c9f3b9d6b4c88ac34f005e9644468</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ipoe: lua: introduced hwaddr field to session object</title>
<updated>2018-05-31T13:03:18+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2018-05-31T13:03:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=1f59c6152777e38112b2de5c7f7c60772a9f9115'/>
<id>urn:sha1:1f59c6152777e38112b2de5c7f7c60772a9f9115</id>
<content type='text'>
example function to use mac address as username:
function username(ses)
    return ses:hwaddr()
end
</content>
</entry>
<entry>
<title>improved lua support</title>
<updated>2017-10-13T20:59:55+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2017-10-13T20:59:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=ec3d2f2942172d79fe74a01f5c980873e01ff5dd'/>
<id>urn:sha1:ec3d2f2942172d79fe74a01f5c980873e01ff5dd</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>ipoe: included lua bitop library</title>
<updated>2017-04-04T09:44:20+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2017-04-04T09:44:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=29e80de7214199500b56e4ac3a667a40df1a7f20'/>
<id>urn:sha1:29e80de7214199500b56e4ac3a667a40df1a7f20</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Revert "ipoe: fix lua 5.3 support"</title>
<updated>2017-03-28T08:57:06+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2017-03-28T08:57:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=82dd32fa8a99596243f07971c97343878c5ef674'/>
<id>urn:sha1:82dd32fa8a99596243f07971c97343878c5ef674</id>
<content type='text'>
This reverts commit b72efa378b32980f2114bcb8081fafbd93096aa0.
</content>
</entry>
<entry>
<title>ipoe: fix lua 5.3 support</title>
<updated>2017-03-27T12:10:26+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2017-03-27T12:10:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=b72efa378b32980f2114bcb8081fafbd93096aa0'/>
<id>urn:sha1:b72efa378b32980f2114bcb8081fafbd93096aa0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ipoe: lua: add "vlan" field to session object</title>
<updated>2016-12-07T20:18:06+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2016-12-07T20:18:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=be063e68bbbba46048215a8fdfccf511af45c490'/>
<id>urn:sha1:be063e68bbbba46048215a8fdfccf511af45c490</id>
<content type='text'>
resulting value is vlan | (parent_vlan &lt;&lt; 16)
</content>
</entry>
<entry>
<title>ipoe: fixed compilation with lua</title>
<updated>2016-03-14T09:51:48+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2016-03-14T09:51:48+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=556d5be02ba0c30f2e33f9d97779827e169dff65'/>
<id>urn:sha1:556d5be02ba0c30f2e33f9d97779827e169dff65</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ipoe: implemented ability to use lua to make vlan name</title>
<updated>2015-12-01T15:43:11+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2015-12-01T15:43:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=b1c5ae767273119283089b35a79f1a64952234af'/>
<id>urn:sha1:b1c5ae767273119283089b35a79f1a64952234af</id>
<content type='text'>
[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
</content>
</entry>
<entry>
<title>ipoe: don't block lua script if it raises error</title>
<updated>2015-04-18T07:15:29+00:00</updated>
<author>
<name>Dmitry Kozlov</name>
<email>xeb@mail.ru</email>
</author>
<published>2015-04-18T07:15:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/marekm72/accel-ppp.git/commit/?id=1c0a0c67d1b3331a638fd73317d7e1b8c4ab34bc'/>
<id>urn:sha1:1c0a0c67d1b3331a638fd73317d7e1b8c4ab34bc</id>
<content type='text'>
</content>
</entry>
</feed>
