projects
/
bluesky.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Keep IP addresses with network measurements.
[bluesky.git]
/
parsetrace
/
analyze-tcp.py
diff --git
a/parsetrace/analyze-tcp.py
b/parsetrace/analyze-tcp.py
index
83125e7
..
b83fb82
100755
(executable)
--- a/
parsetrace/analyze-tcp.py
+++ b/
parsetrace/analyze-tcp.py
@@
-101,9
+101,10
@@
def analyze_get(packets):
# Check for connection establishment (SYN/SYN-ACK) and use that to estimate
# th network RTT.
if p.tcp.get_SYN():
# Check for connection establishment (SYN/SYN-ACK) and use that to estimate
# th network RTT.
if p.tcp.get_SYN():
+ addr = p.ip.get_ip_dst()
p = packets.next()
#print "Connection establishment: RTT is", p.ts - start_ts
p = packets.next()
#print "Connection establishment: RTT is", p.ts - start_ts
- return {'syn_rtt': p.ts - start_ts}
+ return {'syn_rtt': p.ts - start_ts
, 'addr': addr
}
# Otherwise, we expect the first packet to be the GET request itself
if not(p.direction > 0 and p.data.startswith('GET')):
# Otherwise, we expect the first packet to be the GET request itself
if not(p.direction > 0 and p.data.startswith('GET')):