Added csp_dedup on bridge mode
#include "csp_qfifo.h"
#include "csp_io.h"
#include "csp_promisc.h"
+#include "csp_dedup.h"
csp_iface_t * bif_a;
csp_iface_t * bif_b;
@@ -30,6 +31,11 @@ void csp_bridge_work(void) {
return;
}
+ if (csp_dedup_is_duplicate(packet)) {
+ csp_buffer_free(packet);
+ return;
+ }
+
csp_input_hook(input.iface, packet);
/* Here there be promiscuous mode */
