Skip to content

Commit

Permalink
tools/tcptracer: remove custom inet_ntoa function
Browse files Browse the repository at this point in the history
It isn't used, and it doesn't look like it ever was.

Signed-off-by: Jerome Marchand <[email protected]>
  • Loading branch information
jeromemarchand authored and yonghong-song committed Aug 20, 2023
1 parent 0167335 commit 1efe708
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tools/tcptracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -669,15 +669,6 @@ def print_ipv6_event(cpu, data, size):

start_ts = 0

def inet_ntoa(addr):
dq = ''
for i in range(0, 4):
dq = dq + str(addr & 0xff)
if (i != 3):
dq = dq + '.'
addr = addr >> 8
return dq


b["tcp_ipv4_event"].open_perf_buffer(print_ipv4_event)
b["tcp_ipv6_event"].open_perf_buffer(print_ipv6_event)
Expand Down

0 comments on commit 1efe708

Please sign in to comment.