The 'tcpstates' script with the option "-Y" prints "struct.error: required argument is not an integer"
Issue
- The
tcpstates
script with the option-Y
prints "struct.error: required argument is not an integer"
# /usr/share/bcc/tools/tcpstates -Y
SKADDR C-PID C-COMM LADDR LPORT RADDR RPORT OLDSTATE -> NEWSTATE MS
ffff914b445f3f00 0 swapper/3 0.0.0.0 22 0.0.0.0 0 LISTEN -> SYN_RECV 0.000
ffff914b445f3f00 0 swapper/3 10.72.32.23 22 10.74.8.75 46746 SYN_RECV -> ESTABLISHED 0.017
ffff914b43a99d40 389880 rstrnt-adj ::1 0 ::1 8081 CLOSE -> SYN_SENT 0.000
Exception ignored on calling ctypes callback function: <function PerfEventArray._open_perf_buffer.<locals>.raw_cb_ at 0x7f935235c670>
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/bcc/table.py", line 878, in raw_cb_
callback(cpu, data, size)
File "/usr/share/bcc/tools/tcpstates", line 405, in print_ipv6_event
journal.send(**journal_fields(event, AF_INET6))
File "/usr/share/bcc/tools/tcpstates", line 334, in journal_fields
'OBJECT_' + addr_pfx + '_SOURCE_ADDRESS': inet_ntop(addr_family, pack("I", event.saddr)),
struct.error: required argument is not an integer
ffff914b43a99d40 389880 rstrnt-adj ::1 39592 ::1 8081 SYN_SENT -> ESTABLISHED 0.081
Exception ignored on calling ctypes callback function: <function PerfEventArray._open_perf_buffer.<locals>.raw_cb_ at 0x7f935235c670>
Traceback (most recent call last):
File "/usr/lib/python3.9/site-packages/bcc/table.py", line 878, in raw_cb_
callback(cpu, data, size)
File "/usr/share/bcc/tools/tcpstates", line 405, in print_ipv6_event
journal.send(**journal_fields(event, AF_INET6))
File "/usr/share/bcc/tools/tcpstates", line 334, in journal_fields
'OBJECT_' + addr_pfx + '_SOURCE_ADDRESS': inet_ntop(addr_family, pack("I", event.saddr)),
struct.error: required argument is not an integer
Environment
- Red Hat Enterprise Linux release 8
- Red Hat Enterprise Linux release 9
- bcc-tools
- tcpstates
- python3-systemd
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.