@@ -362,8 +362,8 @@ def list_subflows(self, mptcpstreamid: MpTcpStreamId):
362
362
363
363
try :
364
364
con = MpTcpConnection .build_from_dataframe (self .data , mptcpstreamid )
365
- self . poutput ( "mptcp.stream %d has %d subflow(s) (client/server): "
366
- % (mptcpstreamid , len (con .subflows ())))
365
+ msg = "mptcp.stream %d has %d subflow(s) (client/server): "
366
+ self . poutput ( msg % (mptcpstreamid , len (con .subflows ())))
367
367
for sf in con .subflows ():
368
368
self .poutput ("\t %s" % sf )
369
369
except mp .MpTcpException as e :
@@ -526,7 +526,6 @@ def do_tcp_summary(self, args, unknown):
526
526
df = self .data
527
527
528
528
# args.pcapdestinations ?
529
- # print(args)
530
529
531
530
for dest in ConnectionRoles :
532
531
# TODO do it only when needed
@@ -573,7 +572,7 @@ def do_mptcp_summary(self, args, unknown):
573
572
mptcpstream = args .mptcpstream
574
573
575
574
# args.pcapdestinations ?
576
- print (args )
575
+ # print(args)
577
576
ret = mptcp_compute_throughput (
578
577
self .data , args .mptcpstream , args .destination
579
578
)
@@ -670,7 +669,7 @@ def do_summary_extended(self, args, unknown):
670
669
For now it is naive, does not look at retransmissions ?
671
670
"""
672
671
673
- print ("%r" % args )
672
+ print ("Summary extended resume %r" % args )
674
673
df_pcap1 = load_into_pandas (args .pcap1 , self .tshark_config )
675
674
676
675
# to abstract things a bit
@@ -779,17 +778,6 @@ def do_list_mptcp_connections(self, *args):
779
778
self .list_subflows (mptcpstream )
780
779
self .poutput ("\n " )
781
780
782
- # def generate_namespace(self) -> argparse.Namespace:
783
- # myNamespace = Namespace()
784
- # myNamespace.toto = self.data
785
- # parser = argparse_completer.ACArgumentParser(
786
- # description="""
787
- # Mptcpanalyzer filters pcaps to keep only tcp packets.
788
- # This may explain why printed packet ids dont map
789
- # """
790
- # )
791
-
792
-
793
781
794
782
parser = MpTcpAnalyzerParser (
795
783
description = "Export a pcap that can be used with wireshark to debug ids"
@@ -1091,12 +1079,7 @@ def do_load_pcap(self, args):
1091
1079
"""
1092
1080
Load the file as the current one
1093
1081
"""
1094
- print (args )
1095
- # args = shlex.split(args)
1096
1082
# print(args)
1097
- # parser = self.do_load_pcap.argparser
1098
- # print(parser)
1099
- # args = parser.parse_args(args)
1100
1083
1101
1084
self .poutput ("Loading %s" % args .input_file )
1102
1085
self .data = args ._dataframes ["input_file" ]
@@ -1138,15 +1121,15 @@ def do_plot(self, args, unknown):
1138
1121
# 'converts' the namespace to for the syntax define a dict
1139
1122
dargs = vars (args )
1140
1123
1141
- print ("%s" % dargs )
1124
+ # print("%s" % dargs)
1142
1125
dataframes = dargs .pop ("_dataframes" )
1143
1126
# workaround argparse limitations to set as default both directions
1144
1127
# TODO replace that with an action ?
1145
1128
# destinations=dargs.get("destinations", list(mp.ConnectionRoles))
1146
1129
# dargs.update(destinations=destinations)
1147
1130
# log.debug("Selecting destinations %s" % (destinations,))
1148
1131
# dataframes = plotter.preprocess(**dargs)
1149
- print ("%s" % args )
1132
+ print ("DO_PLOT %s" % args )
1150
1133
# dataframes = args._dataframes.values()
1151
1134
assert dataframes is not None , "Preprocess must return a list"
1152
1135
# pass unknown_args too ?
0 commit comments