I am trying to test some network properties with a (partially self written) tool chain. As I would like to use one device with two WLAN adapters / interfaces, I have to prevent communication over the loopback interface and create real network traffic. The test inspects functionality, including ping, arp, multicast etc.
How do I force process 1 to use interface wlan1 only and process 2 the interface wlan2? I guess, this is a job for some magic iptables rules set?