]> rtime.felk.cvut.cz Git - can-utils.git/commit
Fix sloppy CAN_(EFF|RTR)_FLAG handling in can_filter.can_mask .
authorOliver Hartkopp <socketcan@hartkopp.net>
Mon, 1 Dec 2008 07:24:18 +0000 (07:24 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Mon, 1 Dec 2008 07:24:18 +0000 (07:24 +0000)
commit6104197c6aa8c36a51b5ded080db433c1fed847a
tree42eeb2b689234db39e448e4e59abc1a1bc2e4df8
parent450a0580727084dec3579136192bdc7597ef3466
Fix sloppy CAN_(EFF|RTR)_FLAG handling in can_filter.can_mask .

Due to a wrong safety check in af_can.c it was not possible to filter
for SFF frames with a specific CAN identifier without getting the
same selected CAN identifier from a received EFF frame also.

This fix has a minimum impact on the CAN filter API as the 'sloppy'
handling is still a correct (and possibly wanted?) use-case.

Please update the can-utils (especially candump) whose filter definition
on the commandline made assumptions to correct the user input that are
probably unwanted now.

Thanks to Kurt van Dijck for pointing at this issue!

Signed-Off-by: Oliver Hartkopp <oliver@hartkopp.net>
candump.c
isotpdump.c