iface,
aconf->out_iface);
aconf->copy_mode = AFP_COPY_MODE_IPS;
+ if (aconf->flags & AFP_TPACKET_V3) {
+ SCLogWarning(SC_ERR_RUNMODE, "Using tpacket_v3 in IPS mode will result in high latency");
+ }
} else if (strcmp(copymodestr, "tap") == 0) {
SCLogInfo("AF_PACKET TAP mode activated %s->%s",
iface,
aconf->out_iface);
aconf->copy_mode = AFP_COPY_MODE_TAP;
+ if (aconf->flags & AFP_TPACKET_V3) {
+ SCLogWarning(SC_ERR_RUNMODE, "Using tpacket_v3 in TAP mode will result in high latency");
+ }
} else {
SCLogInfo("Invalid mode (not in tap, ips)");
}
# Lock memory map to avoid it goes to swap. Be careful that over suscribing could lock
# your system
#mmap-locked: yes
- # Use experimental tpacket_v3 capture mode, only active if use-mmap is true
+ # Use tpacket_v3 capture mode, only active if use-mmap is true
+ # Don't use it in IPS or TAP mode as it causes severe latency
#tpacket-v3: yes
# Ring size will be computed with respect to max_pending_packets and number
# of threads. You can set manually the ring size in number of packets by setting