From 25c4a447acb59f55cde1b4943c9b418c1fa5b251 Mon Sep 17 00:00:00 2001 From: Xeno Kovah Date: Wed, 7 May 2025 10:33:11 -0400 Subject: [PATCH] Better default, because 0 is a invalid id per the spec. This makes it so people don't need to override the default. --- scapy/layers/bluetooth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scapy/layers/bluetooth.py b/scapy/layers/bluetooth.py index 7d7208e679b..9a334889209 100644 --- a/scapy/layers/bluetooth.py +++ b/scapy/layers/bluetooth.py @@ -330,7 +330,7 @@ class L2CAP_CmdHdr(Packet): 24: "credit_based_conn_resp", 25: "credit_based_reconf_req", 26: "credit_based_reconf_resp"}), - ByteField("id", 0), + ByteField("id", 1), LEShortField("len", None)] def post_build(self, p, pay):