Skip to content

Commit

Permalink
Fix inc_ipv4
Browse files Browse the repository at this point in the history
  • Loading branch information
wingo committed Mar 8, 2019
1 parent e7a60d3 commit 94d123a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/packetblaster/lwaftr/lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ end

local function inc_ipv4(ipv4)
ipv4 = cast("uint32_t*", ipv4)
ipv4[0] = ipv4[0] + 1
ipv4[0] = htonl(ntohl(ipv4[0]) + 1)
end

local function printf(fmt, ...)
Expand Down

0 comments on commit 94d123a

Please sign in to comment.