@@ -816,12 +816,12 @@ def do_list_reinjections(self, line):
816
816
# TODO use ppaged
817
817
reinjections = df .dropna (axis = 0 , subset = ["reinjection_of" ] )
818
818
total_nb_reinjections = 0
819
+ output = ""
819
820
for row in reinjections .itertuples ():
820
821
# if row.packetid not in known:
821
822
# ','.join(map(str,row.reinjection_of)
822
- self .poutput ("packetid=%d (tcp.stream %d) is a reinjection of %d packet(s): "
823
- % ( row .packetid , row .tcpstream , len (row .reinjection_of ))
824
- )
823
+ output += ("packetid=%d (tcp.stream %d) is a reinjection of %d packet(s): " %
824
+ (row .packetid , row .tcpstream , len (row .reinjection_of )))
825
825
826
826
# print("reinjOf=", row.reinjection_of)
827
827
# assuming packetid is the index
@@ -831,9 +831,10 @@ def do_list_reinjections(self, line):
831
831
entry = self .data .loc [ pktId ]
832
832
# entry = df.loc[ df.packetid == pktId]
833
833
# print("packetId %r" % entry)
834
- self . poutput ("- packet %d (tcp.stream %d)" % (entry .packetid , entry .tcpstream ))
834
+ output += ("- packet %d (tcp.stream %d)" % (entry .packetid , entry .tcpstream ))
835
835
# known.update([row.packetid] + row.reinjection)
836
836
837
+ self .ppaged (output )
837
838
# reinjections = df["reinjection_of"].dropna(axis=0, )
838
839
# print("number of reinjections of ")
839
840
0 commit comments