We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe2c924 commit 3a9134aCopy full SHA for 3a9134a
netflowwriter.py
@@ -53,7 +53,7 @@ def _pgwriter_init():
53
54
55
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',
+ buf = struct.pack('!HiIi4s4siQiHiHiIiIiHiHi4s4si4s4s',
57
11, # number of columns
58
4, int(ts), # integer - beware of Y2038 problem! :)
59
8, IPV4_PREFIX, socket.inet_aton(client_ip), # 4 bytes prefix + 4 bytes IP
0 commit comments