cansequence.c: add extended identifier flag to mask
Without this, the extended identifier flag was not important when filtering on CAN frames. Add this to mask to only receive the frame type we want to recieve. Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>pull/254/head^2
parent
a1c20aeb45
commit
00134246c2
|
|
@ -334,6 +334,7 @@ int main(int argc, char **argv)
|
|||
filter->can_id &= CAN_SFF_MASK;
|
||||
}
|
||||
frame.can_id = filter->can_id;
|
||||
filter->can_mask |= CAN_EFF_FLAG;
|
||||
|
||||
printf("interface = %s, family = %d, type = %d, proto = %d\n",
|
||||
interface, family, type, proto);
|
||||
|
|
|
|||
Loading…
Reference in New Issue