]> rtime.felk.cvut.cz Git - can-utils.git/commit
isotp[send|recv]: change command line option for padding bytes
authorOliver Hartkopp <socketcan@hartkopp.net>
Thu, 20 Nov 2014 22:13:37 +0000 (23:13 +0100)
committerOliver Hartkopp <socketcan@hartkopp.net>
Thu, 20 Nov 2014 22:13:37 +0000 (23:13 +0100)
commita51be177d85de8a490a960907e2658ffcd06414c
treef8a12eaafa9eb8790dcf8385198807278b5e00b7
parent523f3d8fc0bd2d59e50062d019b62f5c39d11d55
isotp[send|recv]: change command line option for padding bytes

Allow to specify the TX and RX padding content separately.
Due to the optional values it is possible to provide either TX or RX values
which enables and set the given values.

-p 55:AA => TX padding 0x55, RX padding 0xAA
-p 55    => TX padding 0x55
-p 55:   => TX padding 0x55
-p :AA   => RX padding 0xAA

Additionally the comment for the -P <mode> option was updated to point out the
checking mode of the padding in the received PDUs (rx padding).

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
isotprecv.c
isotpsend.c