mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
isotpdump: add support for FF_DL escape sequence for 32 bit PDU length
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
+11
-2
@@ -94,6 +94,7 @@ int main(int argc, char **argv)
|
|||||||
int color = 0;
|
int color = 0;
|
||||||
int timestamp = 0;
|
int timestamp = 0;
|
||||||
int datidx = 0;
|
int datidx = 0;
|
||||||
|
unsigned long fflen = 0;
|
||||||
struct ifreq ifr;
|
struct ifreq ifr;
|
||||||
int ifindex;
|
int ifindex;
|
||||||
struct timeval tv, last_tv;
|
struct timeval tv, last_tv;
|
||||||
@@ -295,9 +296,17 @@ int main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x10:
|
case 0x10:
|
||||||
printf("[FF] ln: %-4d data:",
|
fflen = ((n_pci & 0x0F)<<8) + frame.data[ext+1];
|
||||||
((n_pci & 0x0F)<<8) + frame.data[ext+1] );
|
if (fflen)
|
||||||
datidx = ext+2;
|
datidx = ext+2;
|
||||||
|
else {
|
||||||
|
fflen = (frame.data[ext+2]<<24) +
|
||||||
|
(frame.data[ext+3]<<16) +
|
||||||
|
(frame.data[ext+4]<<8) +
|
||||||
|
frame.data[ext+5];
|
||||||
|
datidx = ext+6;
|
||||||
|
}
|
||||||
|
printf("[FF] ln: %-4lu data:", fflen);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 0x20:
|
case 0x20:
|
||||||
|
|||||||
Reference in New Issue
Block a user