def build_output(self): """Extend wireshark output""" info = self.__str__().replace(super().__str__(), "") super().build_output() self.wireshark_out += [WSOutputElement(Protofields.SWO_INFO, info), WSOutputElement(Protofields.SWO_EVENT, self.event), WSOutputElement(Protofields.COMMON_INFO, info)]
def completed(self, frame): """Build wireshark output""" # Build wireshark formatting and surround in a tree frame.build_output() if frame.wireshark_out is not None: frame.wireshark_out = [WSOutputElement(Protofields.COMMON_OPEN_TREE, "SWO Logger Frame")] + \ frame.wireshark_out + [WSOutputElement(Protofields.COMMON_CLOSE_TREE)] return frame
def build_output(self): """Extend wireshark output, adding the wireshark output from each event in the event list as a tree""" super().build_output() # Overwrite tree open string for x in self.events: x.wireshark_out[0] = WSOutputElement(Protofields.COMMON_OPEN_TREE, "Event %d" % x.record) # Skip info since it will be overwritten below del x.wireshark_out[-2] self.wireshark_out.extend(x.wireshark_out) self.wireshark_out += [WSOutputElement(Protofields.SWO_INFO, "See Tree of Events"), WSOutputElement(Protofields.SWO_EVENT, self.event), WSOutputElement(Protofields.COMMON_INFO, "See Tree of Events")] pass
def build_output(self): """Build wirshark output""" self.wireshark_out = [WSOutputElement(Protofields.SWO_RAT_S, self.rat_ts_s), WSOutputElement(Protofields.SWO_RAT_T, self.rat_ts_t), WSOutputElement(Protofields.SWO_RTC_S, self.rtc_ts_s), WSOutputElement(Protofields.SWO_OPCODE, self.opcode.name), WSOutputElement(Protofields.SWO_MODULE, self.module), WSOutputElement(Protofields.SWO_LEVEL, self.level), WSOutputElement(Protofields.SWO_FILE, self.file), WSOutputElement(Protofields.SWO_LINE, self.line)]
def build_output(self): """Build wireshark output""" self.wireshark_out = [WSOutputElement(Protofields.SWO_RAT_S, self.rat_ts_s), WSOutputElement(Protofields.SWO_RAT_T, self.rat_ts_t), WSOutputElement(Protofields.SWO_RTC_S, self.rtc_ts_s), WSOutputElement(Protofields.SWO_OPCODE, self.opcode.name), WSOutputElement(Protofields.SWO_INFO, self.itm_string), WSOutputElement(Protofields.COMMON_INFO, self.string)]
def build_output(self): """Build wireshark output""" info = "WARNING!!! BUFFER_OVERFLOW" + self.string self.wireshark_out = [WSOutputElement(Protofields.SWO_RAT_S, self.rat_ts_s), WSOutputElement(Protofields.SWO_RTC_S, self.rtc_ts_s), WSOutputElement(Protofields.SWO_RAT_T, self.rat_ts_t), WSOutputElement(Protofields.SWO_OPCODE, self.opcode.name), WSOutputElement(Protofields.SWO_INFO, info), WSOutputElement(Protofields.COMMON_INFO, info)]
def build_output(self): """Extend wireshark output""" super().build_output() self.wireshark_out += [WSOutputElement(Protofields.SWO_INFO, self.__str__()), WSOutputElement(Protofields.COMMON_INFO, self.__str__())]