]> rtime.felk.cvut.cz Git - can-utils.git/blobdiff - isotptun.c
isotpsend: add option to automatically create test data with specifc length
[can-utils.git] / isotptun.c
index bda376b63d30412d0e35b3d6f56b15754f785539..1c2e66aa682f9ff0d76760a140e08c14a8101437 100644 (file)
@@ -1,7 +1,3 @@
-/*
- *  $Id$
- */
-
 /*
  * isotptun.c - IP over CAN ISO-TP (ISO15765-2) tunnel / proof-of-concept
  *
@@ -47,7 +43,7 @@
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
  * DAMAGE.
  *
- * Send feedback to <socketcan-users@lists.berlios.de>
+ * Send feedback to <linux-can@vger.kernel.org>
  *
  */
 
@@ -163,7 +159,7 @@ int main(int argc, char **argv)
                        else if (optarg[0] == 'c')
                                opts.flags |= CAN_ISOTP_CHK_PAD_DATA;
                        else if (optarg[0] == 'a')
-                               opts.flags |= (CAN_ISOTP_CHK_PAD_DATA | CAN_ISOTP_CHK_PAD_DATA);
+                               opts.flags |= (CAN_ISOTP_CHK_PAD_LEN | CAN_ISOTP_CHK_PAD_DATA);
                        else {
                                printf("unknown padding check option '%c'.\n", optarg[0]);
                                print_usage(basename(argv[0]));