Skip to content

Commit 3a9134a

Browse files
committed
Fix: bigint pack errors
1 parent fe2c924 commit 3a9134a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netflowwriter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _pgwriter_init():
5353

5454

5555
def _pgwriter_write(pgwriter, ts, client_ip, IN_BYTES, PROTOCOL, DIRECTION, L4_DST_PORT, L4_SRC_PORT, INPUT_SNMP, OUTPUT_SNMP, IPV4_DST_ADDR, IPV4_SRC_ADDR):
56-
buf = struct.pack('!HiIi4s4siIiHiHiIiIiHiHi4s4si4s4s',
56+
buf = struct.pack('!HiIi4s4siQiHiHiIiIiHiHi4s4si4s4s',
5757
11, # number of columns
5858
4, int(ts), # integer - beware of Y2038 problem! :)
5959
8, IPV4_PREFIX, socket.inet_aton(client_ip), # 4 bytes prefix + 4 bytes IP

0 commit comments

Comments
 (0)