diff --git a/src/runmode-af-packet.c b/src/runmode-af-packet.c index fff1bd45b9..fd21c26293 100644 --- a/src/runmode-af-packet.c +++ b/src/runmode-af-packet.c @@ -290,6 +290,11 @@ static void *ParseAFPConfig(const char *iface) if (out_iface != NULL) { if (strlen(out_iface) > 0) { aconf->out_iface = out_iface; + if (strcmp(iface, out_iface) == 0) { + FatalError( + "Invalid config: interface (%s) and copy-iface (%s) can't be the same", + iface, out_iface); + } } } else { SCLogWarning("copy-iface corresponding to %s interface cannot be NULL", iface);