I have one application in which i have following setup,
--------- LAN ------- Wifi -------
| PC1 | <=====> | PC2 | <=====> | STA |
--------- ------- -------
PC1 is connected to network and PC2 is connected to PC1 using one socket connection. STA is connected to PC2 using wifi (PC2 is configured as AP using hostapd) and I want to acess internet on STA. But there is one limitation, all the packet exchange between PC2 & PC1 should be using the given socket only.