diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2015-12-01 18:43:11 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2015-12-01 18:43:11 +0300 |
commit | b1c5ae767273119283089b35a79f1a64952234af (patch) | |
tree | 5237c6ecf92b4c68836199d002d86fdf039bbe32 /accel-pppd/ctrl/ipoe/ipoe.h | |
parent | e6c5b180e9b3fe0afac48bffe80522813a35b405 (diff) | |
download | accel-ppp-xebd-b1c5ae767273119283089b35a79f1a64952234af.tar.gz accel-ppp-xebd-b1c5ae767273119283089b35a79f1a64952234af.zip |
ipoe: implemented ability to use lua to make vlan name
[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
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.h')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.h b/accel-pppd/ctrl/ipoe/ipoe.h index 1405092..036eda8 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.h +++ b/accel-pppd/ctrl/ipoe/ipoe.h @@ -108,6 +108,7 @@ struct ipoe_session_info { #ifdef USE_LUA char *ipoe_lua_get_username(struct ipoe_session *, const char *func); +int ipoe_lua_make_vlan_name(const char *func, const char *parent, int svid, int cvid, char *name); #endif struct iphdr; |