I have an OpenWrt distribution for my embedded system. The device has 3 network interfaces: eth0, eth1 and wlan0.
One of the network interfaces (eth0) should only be used for socket programming. I can create a socket with parameters AF_PACKET, SOCK_RAW, ETH_P_ALL. The socket receives all the network traffic, I can send packets, and everything is fine.
But my problem is that the OS also uses an interface to send regeneration (e.g. ARP and ICMP requests / responses).
Is there an option that the interface is used only by my program, and not by the OS itself?
source
share