Multiple network cards on one PC. Packages sent through the driver.
-
Hello!
On the PC has two network cards.Each card is connected to its subnet.Network is not connected to each other. Creates a UDP socket on the NIC 1 and 2. Send UDP packet from a network card 1 to network card 2. Destination address is the IP address of the NIC 2. Sends a packet from network card 1. On the network card 2, I get a packet from network card 1. The package passed through the driver ethernet.
Pass through the driver from input to output only in such cases:- From IP = To IP(from 192.168.1.1 to 192.168.1.1 )
- From IP = To Localhost(127.0.0.1 ...)
- From IP = broadcast(255.255.255.255)
- From IP = multicast(224.0.0.1 ...)
I guess there is a socket set that prohibit or allow bridging?
Tell me what's wrong? Beforehand thank you!