From: Oliver Hartkopp Date: Thu, 20 Nov 2014 22:13:37 +0000 (+0100) Subject: isotp[send|recv]: change command line option for padding bytes X-Git-Url: https://rtime.felk.cvut.cz/gitweb/can-utils.git/commitdiff_plain/a51be177d85de8a490a960907e2658ffcd06414c 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 option was updated to point out the checking mode of the padding in the received PDUs (rx padding). Signed-off-by: Oliver Hartkopp --- diff --git a/isotprecv.c b/isotprecv.c index 2e0e81b..5c4f2a5 100644 --- a/isotprecv.c +++ b/isotprecv.c @@ -64,8 +64,8 @@ void print_usage(char *prg) fprintf(stderr, "Options: -s (source can_id. Use 8 digits for extended IDs)\n"); fprintf(stderr, " -d (destination can_id. Use 8 digits for extended IDs)\n"); fprintf(stderr, " -x [:] (extended addressing / opt. separate rxaddr)\n"); - fprintf(stderr, " -p (set and enable padding byte)\n"); - fprintf(stderr, " -P (check padding in SF/CF. (l)ength (c)ontent (a)ll)\n"); + fprintf(stderr, " -p [tx]:[rx] (set and enable tx/rx padding bytes)\n"); + fprintf(stderr, " -P (check rx padding for (l)ength (c)ontent (a)ll)\n"); fprintf(stderr, " -b (blocksize. 0 = off)\n"); fprintf(stderr, " -m (STmin in ms/ns. See spec.)\n"); fprintf(stderr, " -f