Hello, all
I am trying using pfbridge in non blocking mode with using
pfring_send_last_rx_packet (see patch below) in next setup:
tap1 <---> pfbridge <---> tap2
and I am getting packets on tap2 delayed by two packets,
i.e.
send packet1 to tap1 --- got nothing on tap2
send packet2 to tap1 --- got nothing on tap2
send packet3 to tap1 --- got packet1 on tap2
send packet4 to tap1 --- got packet2 on tap2
.....
when I using blocking mode (original code withot patch) it works fine,
as well as using -p option (without pfring_send_last_rx_packet)
Tested on tap devices and tg3 original linux driver.
Patch for pbbridge.c:
--- pfbridge.c_orig 2014-03-13 18:03:38.521613820 +0400
+++ pfbridge.c 2014-03-13 18:03:53.709501137 +0400
@@ -164,7 +164,7 @@
u_char *buffer;
struct pfring_pkthdr hdr;
- if(pfring_recv(a_ring, &buffer, 0, &hdr, 1) > 0) {
+ if(pfring_recv(a_ring, &buffer, 0, &hdr, 0) > 0) {
int rc;
if(use_pfring_send) {
Ilya.
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc