-/*
- * $Id$
- */
-
/*
* isotpserver.c
*
fd_set readfds;
- int i, ret;
+ int i;
int nbytes;
int local_port = 0;
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]));
FD_SET(sc, &readfds);
FD_SET(sa, &readfds);
- ret = select((sc > sa)?sc+1:sa+1, &readfds, NULL, NULL, NULL);
+ select((sc > sa)?sc+1:sa+1, &readfds, NULL, NULL, NULL);
if (FD_ISSET(sc, &readfds)) {