]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Fix Tile compile
authorVictor Julien <victor@inliniac.net>
Wed, 31 Jul 2013 05:26:09 +0000 (07:26 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 31 Jul 2013 05:26:09 +0000 (07:26 +0200)
src/suricata.c

index d5a363efae87e84e2fc0390a355223b1a6935404..fd056a8e1d1a869df7f9c3e31b5ec620b316f2a2 100644 (file)
@@ -1252,17 +1252,17 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
             }
 #ifdef HAVE_MPIPE
             else if(strcmp((long_opts[option_index]).name , "mpipe") == 0) {
-                if (run_mode == RUNMODE_UNKNOWN) {
-                    run_mode = RUNMODE_TILERA_MPIPE;
+                if (suri->run_mode == RUNMODE_UNKNOWN) {
+                    suri->run_mode = RUNMODE_TILERA_MPIPE;
                     if (optarg != NULL) {
-                        memset(pcap_dev, 0, sizeof(pcap_dev));
-                        strlcpy(pcap_dev, optarg,
-                                ((strlen(optarg) < sizeof(pcap_dev)) ?
-                                 (strlen(optarg) + 1) : sizeof(pcap_dev)));
+                        memset(suri->pcap_dev, 0, sizeof(suri->pcap_dev));
+                        strlcpy(suri->pcap_dev, optarg,
+                                ((strlen(optarg) < sizeof(suri->pcap_dev)) ?
+                                 (strlen(optarg) + 1) : sizeof(suri->pcap_dev)));
                         LiveRegisterDevice(optarg);
                     }
                 } else {
-                    SCLogError(SC_ERR_MULTIPLE_RUN_MODE, 
+                    SCLogError(SC_ERR_MULTIPLE_RUN_MODE,
                                "more than one run mode has been specified");
                     usage(argv[0]);
                     exit(EXIT_FAILURE);