]> rtime.felk.cvut.cz Git - sojka/can-utils.git/blobdiff - cansniffer.c
Added '-d' option to support the receive packet drop counting introduced in
[sojka/can-utils.git] / cansniffer.c
index 649c39dbf60f924a61f2cf0f2402d546dd126dae..22d7e406ef690f33bd086598f56426729a1c03f1 100644 (file)
@@ -212,7 +212,7 @@ int main(int argc, char **argv)
        for (i=0; i < 2048 ;i++) /* default: check all CAN-IDs */
                do_set(i, ENABLE);
 
-       while ((opt = getopt(argc, argv, "m:v:r:t:h:l:qbBcf")) != -1) {
+       while ((opt = getopt(argc, argv, "m:v:r:t:h:l:qbBcf?")) != -1) {
                switch (opt) {
                case 'm':
                        sscanf(optarg, "%x", &mask);