You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I am not sure whether this is a bug or the correct behavior. When sending multicast messages through a specific network interface (e.g. an Ethernet interface) by first joining the multicast group, I am getting duplicate packets returned by WinDivertRecv - one packet where the address has Loopback=1 and one with 0. I am able to reproduce this with the passthru example (WINDIVERT_LAYER_NETWORK), and the result is that each packet is re-injected twice back to the network interface.
In Wireshark, start a capture on an Ethernet device with the capture filter set to udp port 6000. You should see duplicate packets being captured (identical in body).
* Alternatively, use gstreamer to reproduce (my original use case):
First, I am not sure whether this is a bug or the correct behavior. When sending multicast messages through a specific network interface (e.g. an Ethernet interface) by first joining the multicast group, I am getting duplicate packets returned by WinDivertRecv - one packet where the address has
Loopback=1
and one with 0. I am able to reproduce this with the passthru example (WINDIVERT_LAYER_NETWORK), and the result is that each packet is re-injected twice back to the network interface.Ignoring the packet with
addr->Loopback=1
before the following line resolves this:https://github.com/basil00/Divert/blob/97101072dbe31d744ca3429da389350a3df39e18/examples/passthru/passthru.c#L185
System details:
To reproduce:
Run
passthru "udp.DstPort == 6000"
Run this Sender example* (python), after setting interface_ip:
udp port 6000
. You should see duplicate packets being captured (identical in body).* Alternatively, use gstreamer to reproduce (my original use case):
The text was updated successfully, but these errors were encountered: