Fix compilation error on non-pfring systems.

remotes/origin/master-1.1.x
Victor Julien 14 years ago
parent 399e56209f
commit 1c9e48ae98

@ -3540,6 +3540,7 @@ int RunModeIdsPfringAuto(DetectEngineCtx *de_ctx, char *iface) {
}
int RunModeIdsPfringAutoFp(DetectEngineCtx *de_ctx, char *iface) {
#ifdef HAVE_PFRING
SCEnter();
char tname[12];
char qname[12];
@ -3676,6 +3677,9 @@ int RunModeIdsPfringAutoFp(DetectEngineCtx *de_ctx, char *iface) {
}
return 0;
#else
return -1;
#endif
}
int RunModeErfFileAuto(DetectEngineCtx *de_ctx, char *file)

@ -385,7 +385,9 @@ int main(int argc, char **argv)
int opt;
char *pcap_file = NULL;
char pcap_dev[128];
#ifdef HAVE_PFRING
char *pfring_dev = NULL;
#endif
char *sig_file = NULL;
char *nfq_id = NULL;
char *conf_filename = NULL;
@ -1185,6 +1187,7 @@ int main(int argc, char **argv)
//RunModeFilePcapAutoFp(de_ctx, pcap_file);
//RunModeFilePcapAuto2(de_ctx, pcap_file);
}
#ifdef HAVE_PFRING
else if (run_mode == MODE_PFRING) {
PfringLoadConfig();
//RunModeIdsPfring3(de_ctx, pfring_dev);
@ -1197,6 +1200,7 @@ int main(int argc, char **argv)
RunModeIdsPfringAutoFp(de_ctx, pfring_dev);
}
}
#endif /* HAVE_PFRING */
else if (run_mode == MODE_NFQ) {
//RunModeIpsNFQ(de_ctx, nfq_id);
RunModeIpsNFQAuto(de_ctx, nfq_id);

Loading…
Cancel
Save