| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2017-10-17 | lua: implemented interface to extend session object by modules | Dmitry Kozlov | |
| to access module specific object introduced new function session:module(NAME) | |||
| 2017-10-16 | lua: implemented "session" module that provides session object to be passed ↵ | Dmitry Kozlov | |
| to lua scripts session object consists of following functions: ifname() - interface name ifindex() - interface ifindex sid() - Acct-Session-ID uptime() - session uptime in seconds username() ctrl_type() - type of session (pppt/pppoe/l2tp/ipoe) calling_sid() - Calling-Station-ID called_sid() - Called-Station-ID ipv4() - retuns pair (peer address, local address) ipv6() - ipv6 address or nil rx_bytes() tx_bytes() | |||
