Skip to content

Commit

Permalink
Replaced function packlen with packsize in knx-gateway-discover
Browse files Browse the repository at this point in the history
The script fails because the function packlen does not exist.
  • Loading branch information
f0rw4rd committed Oct 21, 2023
1 parent ff92f5b commit 1f3e84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/knx-gateway-discover.nse
Expand Up @@ -93,7 +93,7 @@ local knxParseSearchResponse = function(ips, results, knxMessage)
end

local message_format = '>B c1 c4 I2 BBB c1 I2 c2 c6 c4 c6 c30 BB'
if #knxMessage - pos + 1 < string.packlen(message_format) then
if #knxMessage - pos + 1 < string.packsize(message_format) then
stdnse.debug1("Message too short for KNX message")
return
end
Expand Down

0 comments on commit 1f3e84f

Please sign in to comment.