Skip to content

Commit

Permalink
Do not throw exception on ipv6 packets in tcpretrans
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrik committed Jun 23, 2016
1 parent fc05b07 commit c862e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tcpretrans.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def print_ipv4_event(cpu, data, size):
tcpstate[event.state]))
def print_ipv6_event(cpu, data, size):
event = ct.cast(data, ct.POINTER(Data_ipv6)).contents
print("%%-8s -6d %-2d %-20s %1s> %-20s %s" % (
print("%-8s %-6d %-2d %-20s %1s> %-20s %s" % (
strftime("%H:%M:%S"), event.pid, event.ip,
"...%x:%d" % (event.saddr, event.lport),
type[event.type],
Expand Down

0 comments on commit c862e31

Please sign in to comment.