<div class="gmail_quote">---------- Forwarded message ----------<br>From: "Gioacchino Mazzurco" <<a href="mailto:gio@eigenlab.org">gio@eigenlab.org</a>><br>Date: Dec 25, 2014 10:49 PM<br>Subject: [lime-dev] Ground routing branch<br>To: <<a href="mailto:dev@lists.libre-mesh.org">dev@lists.libre-mesh.org</a>><br>Cc: <br><br type="attribution">Hi all!<br>
<br>
I have just pushed the feature/ground-routing branch to our git repo, the good<br>
news is that it is already usable and working, the bad news is that it seems<br>
that openwrt doesn't offer a way to know who switch%d is so it could arbitrary<br>
be eth0 or eth1 depending on the model and seems there is no way to determine<br>
it from software side -_-<br>
<br>
what I have done now is assume in the code that swtich$i will be mapped to<br>
eth$i and although it is not true it works on all device i have and on device<br>
we use the most like tl-wdr3x00<br>
<br>
what openwrt do is ship a spefic confing for each different device, this config is<br>
manually written by the person who write the support for that device so plain<br>
old boring manual human work...<br>
<br>
what we can do is<br>
1) leave stuff as is, so users with "unusual" devices have do do some adjust<br>
after lime-config<br>
2) Introduce some kind of very very hardware specific module like the unpopular<br>
lime-hwd-tl-wdr3600 we had this summer for each device with a "switch map"<br>
readeable by a program<br>
3) Push openwrt developers to implement some kind of mechanism to make switch<br>
map readeable from software side<br>
<br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@lists.libre-mesh.org">Dev@lists.libre-mesh.org</a><br>
<a href="https://lists.libre-mesh.org/mailman/listinfo/dev" target="_blank">https://lists.libre-mesh.org/mailman/listinfo/dev</a><br>
</div>