Skip to content

Commit 39da2de

Browse files
hsfz: incorrect_tester_address packets have addressing.
1 parent 71c4d88 commit 39da2de

File tree

1 file changed

+4
-3
lines changed
  • scapy/contrib/automotive/bmw

1 file changed

+4
-3
lines changed

scapy/contrib/automotive/bmw/hsfz.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,12 @@ class HSFZ(Packet):
7070

7171
def _hasaddrs(self):
7272
# type: () -> bool
73-
# Address present in diagnostic_req_res, acknowledge_transfer and
74-
# two byte length alive_check frames.
73+
# Address present in diagnostic_req_res, acknowledge_transfer,
74+
# two byte length alive_check and incorrect_tester_address frames.
7575
return self.control == 0x01 or \
7676
self.control == 0x02 or \
77-
(self.control == 0x12 and self.length == 2)
77+
(self.control == 0x12 and self.length == 2) or \
78+
self.control == 0x40
7879

7980
def _hasidstring(self):
8081
# type: () -> bool

0 commit comments

Comments
 (0)