@@ -209,6 +209,7 @@ class cDltServiceConnectionInfo(ctypes.Structure):
209209 ("comid" , DLT_ID_SIZE * ctypes .c_byte ),
210210 ]
211211 _pack_ = 1
212+ _layout_ = "ms"
212213
213214
214215class MessageMode (object ):
@@ -416,6 +417,7 @@ class cDltStorageHeader(ctypes.Structure):
416417 ("ecu" , ctypes .c_char * DLT_ID_SIZE ),
417418 ]
418419 _pack_ = 1
420+ _layout_ = "ms"
419421
420422 def __reduce__ (self ):
421423 return (cDltStorageHeader , (self .pattern , self .seconds , self .microseconds , self .ecu ))
@@ -434,6 +436,7 @@ class cDltStandardHeader(ctypes.BigEndianStructure):
434436
435437 _fields_ = [("htyp" , ctypes .c_uint8 ), ("mcnt" , ctypes .c_uint8 ), ("len" , ctypes .c_ushort )]
436438 _pack_ = 1
439+ _layout_ = "ms"
437440
438441 def __reduce__ (self ):
439442 return (cDltStandardHeader , (self .htyp , self .mcnt , self .len ))
@@ -452,6 +455,7 @@ class cDltStandardHeaderExtra(ctypes.Structure):
452455
453456 _fields_ = [("ecu" , ctypes .c_char * DLT_ID_SIZE ), ("seid" , ctypes .c_uint32 ), ("tmsp" , ctypes .c_uint32 )]
454457 _pack_ = 1
458+ _layout_ = "ms"
455459
456460 def __reduce__ (self ):
457461 return (cDltStandardHeaderExtra , (self .ecu , self .seid , self .tmsp ))
@@ -476,6 +480,7 @@ class cDltExtendedHeader(ctypes.Structure):
476480 ("ctid" , ctypes .c_char * DLT_ID_SIZE ),
477481 ]
478482 _pack_ = 1
483+ _layout_ = "ms"
479484
480485 def __reduce__ (self ):
481486 return (cDltExtendedHeader , (self .msin , self .noar , self .apid , self .ctid ))
0 commit comments