Skip to content

Commit

Permalink
fix ipv6 struct alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
brendangregg committed Mar 21, 2018
1 parent bbd9acd commit 0f2e601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/tcpstates.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
u64 ts_us;
u64 skaddr;
u64 pid;
u64 ports;
u64 saddr;
u64 daddr;
u64 ports;
u64 span_us;
u64 oldstate;
u64 newstate;
Expand All @@ -84,9 +84,9 @@
u64 ts_us;
u64 skaddr;
u64 pid;
u64 ports;
unsigned __int128 saddr;
unsigned __int128 daddr;
u64 ports;
u64 span_us;
u64 oldstate;
u64 newstate;
Expand Down Expand Up @@ -193,9 +193,9 @@ class Data_ipv4(ct.Structure):
("ts_us", ct.c_ulonglong),
("skaddr", ct.c_ulonglong),
("pid", ct.c_ulonglong),
("ports", ct.c_ulonglong),
("saddr", ct.c_ulonglong),
("daddr", ct.c_ulonglong),
("ports", ct.c_ulonglong),
("span_us", ct.c_ulonglong),
("oldstate", ct.c_ulonglong),
("newstate", ct.c_ulonglong),
Expand All @@ -207,9 +207,9 @@ class Data_ipv6(ct.Structure):
("ts_us", ct.c_ulonglong),
("skaddr", ct.c_ulonglong),
("pid", ct.c_ulonglong),
("ports", ct.c_ulonglong),
("saddr", (ct.c_ulonglong * 2)),
("daddr", (ct.c_ulonglong * 2)),
("ports", ct.c_ulonglong),
("span_us", ct.c_ulonglong),
("oldstate", ct.c_ulonglong),
("newstate", ct.c_ulonglong),
Expand Down

0 comments on commit 0f2e601

Please sign in to comment.