diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2017-04-04 12:44:16 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2017-04-04 12:44:20 +0300 |
commit | 29e80de7214199500b56e4ac3a667a40df1a7f20 (patch) | |
tree | 94ae87f10806f0dd1920cc10f6d98d1ba6b554af /accel-pppd/ctrl/ipoe/CMakeLists.txt | |
parent | 974f6a33e3983880051470d1676745fd136f5d61 (diff) | |
download | accel-ppp-29e80de7214199500b56e4ac3a667a40df1a7f20.tar.gz accel-ppp-29e80de7214199500b56e4ac3a667a40df1a7f20.zip |
ipoe: included lua bitop library
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
Diffstat (limited to 'accel-pppd/ctrl/ipoe/CMakeLists.txt')
-rw-r--r-- | accel-pppd/ctrl/ipoe/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/CMakeLists.txt b/accel-pppd/ctrl/ipoe/CMakeLists.txt index 73dbb382..bba74633 100644 --- a/accel-pppd/ctrl/ipoe/CMakeLists.txt +++ b/accel-pppd/ctrl/ipoe/CMakeLists.txt @@ -16,7 +16,7 @@ IF (LUA) ENDIF (NOT LUA51_FOUND) INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR}) ADD_DEFINITIONS(-DUSE_LUA) - SET(sources ${sources} lua.c lua_lpack.c) + SET(sources ${sources} lua.c lua_lpack.c lua_bit.c) ENDIF (LUA) ADD_LIBRARY(ipoe SHARED ${sources}) |