From b67ccef237b9038ec022d9ff764291d56db939c2 Mon Sep 17 00:00:00 2001 From: Alina Lenk Date: Sat, 26 Feb 2022 15:25:10 +0100 Subject: [PATCH] Fix generate_packets.py crash with generate_stats enabled See osdn #43979 Signed-off-by: Alina Lenk --- common/generate_packets.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/common/generate_packets.py b/common/generate_packets.py index c61e42d6ec..1934910324 100755 --- a/common/generate_packets.py +++ b/common/generate_packets.py @@ -1571,6 +1571,18 @@ class Packet: result.update(vars_) return result + # See Variant.get_stats + def get_stats(self): + return "".join(v.get_stats() for v in self.variants) + + # See Variant.get_report_part + def get_report_part(self): + return "".join(v.get_report_part() for v in self.variants) + + # See Variant.get_reset_part + def get_reset_part(self): + return "".join(v.get_reset_part() for v in self.variants) + def get_send(self): if self.no_packet: func="no_packet" -- 2.17.1