Skip to content

Commit

Permalink
Fix IP checksum computation for exports
Browse files Browse the repository at this point in the history
  • Loading branch information
takikawa authored and wingo committed Jul 25, 2017
1 parent b35fb6b commit e30dc7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/apps/netflow/v9.lua
Expand Up @@ -112,6 +112,7 @@ local function construct_packet(exporter, ptr, len)
udp_h:checksum(ptr, len)
dgram:push(udp_h)
ip_h:total_length(ip_h:sizeof() + udp_h:sizeof() + len)
ip_h:checksum()
dgram:push(ip_h)
dgram:push(eth_h)

Expand Down

0 comments on commit e30dc7d

Please sign in to comment.