mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-05 06:20:00 +02:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user