On Wed, Oct 17, 2012 at 6:14 PM, Sophana K sophana78@gmail.com wrote:
I may have found a possible solution by parsing the output of batctl transglobal, and look for the gateway mac address. If the gateway is in the transglobal table, it is accessed through the mesh, and it is probably not connected directly to the router.
It's more.. robust.. if you parse translocal table instead. BUT...
Why not just connect the gateway to the LAN switch (or permanently bridge the WAN, which is equivalent)? Why do you want to "break" the bridge? Under what circumstances does that make sense (or why is it a problem to leave the WAN bridged when the gateway is not directly connected)?