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
Marc Kleine-Budde 2019-11-19 09:34:13 +01:00
parent a1c20aeb45
commit 00134246c2
1 changed files with 1 additions and 0 deletions

View File

@ -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);