Skip to content

Commit

Permalink
Merge #1404 branch 'snabbco/max-next' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Jan 31, 2019
2 parents af333dd + c8f5034 commit b68c7b8
Show file tree
Hide file tree
Showing 79 changed files with 2,363 additions and 516 deletions.
8 changes: 4 additions & 4 deletions lib/ljndpi/ndpi/c.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ local lib_version = (function ()
end)()

-- Only nDPI 1.x versions above 1.7 are supported.
if lib_version.major ~= 1 or lib_version.minor < 7 then
if lib_version.major == 1 and lib_version.minor < 7 then
error("Unsupported nDPI version: " .. tostring(lib_version))
end

if lib_version.minor == 7 then
if lib_version.major == 1 and lib_version.minor == 7 then
-- nDPI 1.7
ffi.cdef [[
ndpi_detection_module_t* ndpi_init_detection_module (uint32_t ticks_per_second,
Expand All @@ -105,8 +105,8 @@ if lib_version.minor == 7 then
uint32_t src_host, uint16_t src_port,
uint32_t dst_host, uint32_t dst_port);
]]
elseif lib_version.minor == 8 then
-- nDPI 1.8
else
-- nDPI 1.8 and later
ffi.cdef [[
ndpi_detection_module_t* ndpi_init_detection_module (void);

Expand Down
Loading

0 comments on commit b68c7b8

Please sign in to comment.