i have a problem with RAW sockets.
I have 2 RAW sockets where each socket listens on a networkinterface in promiscuious mode.
Socket A is listening on eth0 and socket B is listening on eth1.
Now, if there is a packet incoming on eth0 it should be send on eth1 and the other way around. So that i have something like a bridge.
This works fine accept:
There is a packet loop because:
e.g. socket A can see both incoming and outgouing packets so it sends back packets which are coming from socket B and so on.
How can i configure the socket so that it can only see incoming packets and ignores outgoing packets??
Please can someone help me with that.