From eee8c5808a94a7bb4d2e5f0e52e99b39c7b4111a Mon Sep 17 00:00:00 2001 From: gwillgues <96144967+gwillgues@users.noreply.github.com> Date: Thu, 11 Jun 2026 05:28:44 -0400 Subject: [PATCH] Add Bluetooth data link types to link_types.py --- pcapng/constants/link_types.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pcapng/constants/link_types.py b/pcapng/constants/link_types.py index e61e730..de08b40 100644 --- a/pcapng/constants/link_types.py +++ b/pcapng/constants/link_types.py @@ -216,6 +216,9 @@ # Linux source tree. Only the first 48 bytes of that header are present. LINKTYPE_USB_LINUX = 189 +# Bluetooth HCI UART Transport Layer packets with a direction pseudo-header. +LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR = 201 + # USB packets, beginning with a Linux USB header, as specified by the # struct usbmon_packet in the Documentation/usb/usbmon.txt file in the # Linux source tree. All 64 bytes of the header are present. @@ -288,6 +291,7 @@ LINKTYPE_IBM_SP: "Reserved for IBM SP switch and IBM Next Federation switch.", # noqa LINKTYPE_IBM_SN: "Reserved for IBM SP switch and IBM Next Federation switch.", # noqa LINKTYPE_USB_LINUX: "USB packets, beginning with a 48-bytes Linux USB header.", # noqa + LINKTYPE_BLUETOOTH_HCI_H4_WITH_PHDR: "Bluetooth HCI UART Transport Layer packets with a direction pseudo-header.", LINKTYPE_USB_LINUX_MMAPPED: "USB packets, beginning with a 64-bytes Linux USB header.", # noqa LINKTYPE_DOCSIS31_XRA31: "DOCSIS with Excentis XRA pseudo-header", }