X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;ds=sidebyside;f=parsetrace%2Fanalyze-tcp.py;fp=parsetrace%2Fanalyze-tcp.py;h=b83fb82f8c2ad8c34dcc2c84288d05f229747cd2;hb=fb049be3fbdc5842fc0c13aed0838d0000fcc7c7;hp=83125e79a1e7c13643509fade6702f93b9270118;hpb=c6542451a09acfc326f1578635f86291652b4f81;p=bluesky.git diff --git a/parsetrace/analyze-tcp.py b/parsetrace/analyze-tcp.py index 83125e7..b83fb82 100755 --- 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(): + addr = p.ip.get_ip_dst() 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')):