From: hartkopp Date: Sun, 14 Nov 2010 08:55:06 +0000 (+0000) Subject: Added new socketoptions to force the isotp protocol to intentionally X-Git-Url: https://rtime.felk.cvut.cz/gitweb/socketcan-devel.git/commitdiff_plain/b401688614c3dd3dbc62414efd801f127a5390ca Added new socketoptions to force the isotp protocol to intentionally misbehave for regression tests. CAN_ISOTP_TX_STMIN: Set a value in nano secs that's used as minimum CF gap by the sender. This value is used instead of the value provided by the receiver inside the FC. CAN_ISOTP_RX_STMIN: Ignores received CF frames which timestamps differ less than this value in nano secs. This is used to test the receivers misbehaviour when the receiver provides a lower stmin value that he's able to cope with. Received CF frames are silently dropped when they come faster than specified by this value. git-svn-id: svn://svn.berlios.de//socketcan/trunk@1201 030b6a49-0b11-0410-94ab-b0dab22257f2 --- diff --git a/can-utils/isotprecv.c b/can-utils/isotprecv.c index 9e37c86..acd6de6 100644 --- a/can-utils/isotprecv.c +++ b/can-utils/isotprecv.c @@ -71,6 +71,7 @@ void print_usage(char *prg) fprintf(stderr, " -P (check padding in SF/CF. (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