| commit: | cabcff54a23fa4a02b88c2b1f6c07a7fbb4f44dd |
| author: | Trevor Bentley |
| committer: | Trevor Bentley |
| date: | Thu Oct 23 02:56:02 2025 +0200 |
| parents: | f164c858446e0f997bd38f3e1f49d4478332c9cc |
diff --git a/saleae_usb_pcap.py b/saleae_usb_pcap.py line changes: +2/-2 index 89885ce..a98b46e --- a/saleae_usb_pcap.py +++ b/saleae_usb_pcap.py
@@ -64,9 +64,9 @@ class PcapWriter(object): def syslog_pdu(self, text): pdu_name = "syslog".encode("utf-8") # this is inexplicably the only packet that has to be big-endian - hdr = struct.pack(">H", len(pdu_name)) + pdu_name + EXP_PDU_TAG_DISSECTOR_NAME = 12 + hdr = struct.pack(">HH", EXP_PDU_TAG_DISSECTOR_NAME, len(pdu_name)) + pdu_name hdr += self.option(0x00, "") - hdr = struct.pack(">H", len(hdr)) + hdr hdr += text.encode("utf-8") return hdr