]> rtime.felk.cvut.cz Git - can-utils.git/commit
Added automatic extended frame format recognition.
authorOliver Hartkopp <socketcan@hartkopp.net>
Wed, 2 Jul 2008 04:05:11 +0000 (04:05 +0000)
committerOliver Hartkopp <socketcan@hartkopp.net>
Wed, 2 Jul 2008 04:05:11 +0000 (04:05 +0000)
commitf1c095d801520586a295d7221428bc5b0e155fe4
tree50c4b8bd682e9d4163c70932ea17e9c994767c3a
parent6410c22fd5fe568abba39c496f399e30fada3a11
Added automatic extended frame format recognition.

Most SocketCAN userspace tools (like cansend) recognize the EFF by the
stringlength of the given CAN-ID: 3 -> SFF , 8 -> EFF.
This was missing in the candump filter definition and therefore the
values had to be specified with the CAN_EFF_FLAG set in the value, e.g.
92345678 for the extended CAN-ID 12345678 - this was not really nice.

Now the filtersets for extended frames can be specified as expected:
12345678:1FFFFFFF to filter for only 12345678 extended CAN-ID
000000AA:1FFFFFFF to filter for only AA extended CAN-ID.
candump.c