af-packet: disable most code when not built in

When af-packet is not build we can avoid to build a large amount
of code.
pull/1917/head
Eric Leblond 10 years ago
parent e4059fb541
commit 994bc15c2a

@ -83,6 +83,9 @@ void RunModeIdsAFPRegister(void)
return;
}
#ifdef HAVE_AF_PACKET
void AFPDerefConfig(void *conf)
{
AFPIfaceConfig *pfp = (AFPIfaceConfig *)conf;
@ -475,6 +478,9 @@ int AFPRunModeIsIPS()
return has_ips;
}
#endif
int RunModeIdsAFPAutoFp(void)
{
SCEnter();

@ -984,6 +984,7 @@ static TmEcode ParseInterfacesList(int run_mode, char *pcap_dev)
/* not an error condition if we have a 1.0 config */
LiveBuildDeviceList("pfring");
}
#ifdef HAVE_AF_PACKET
} else if (run_mode == RUNMODE_AFP_DEV) {
/* iface has been set on command line */
if (strlen(pcap_dev)) {
@ -1002,6 +1003,7 @@ static TmEcode ParseInterfacesList(int run_mode, char *pcap_dev)
EngineModeSetIPS();
}
}
#endif
#ifdef HAVE_NETMAP
} else if (run_mode == RUNMODE_NETMAP) {
/* iface has been set on command line */

Loading…
Cancel
Save