summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-10-16 15:59:20 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-10-16 16:53:52 +0300
commit55694075e77a4c70f99b97175d839bd556f9f1b4 (patch)
tree87f1965475611a9e0848c64d0e1162d82308aa87 /contrib
parent4bbecf70cc3ad33da75f0dd01d6b683f271f9bd0 (diff)
downloadaccel-ppp-55694075e77a4c70f99b97175d839bd556f9f1b4.tar.gz
accel-ppp-55694075e77a4c70f99b97175d839bd556f9f1b4.zip
lua: implemented "session" module that provides session object to be passed 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()
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions