On Sat, Jun 25, 2011 at 6:35 AM, Henning <span dir="ltr"><<a href="mailto:hrogge@googlemail.com" target="_blank">hrogge@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>On Saturday 25 June 2011 06:58:46 Rusty Haddock wrote:<br>
> Hi!<br>
><br>
>     I'm new to this mailing list but I've been one of developers with<br>
> the Ham Radio HSMM-MESH project down in Austin, TX for two yearas now.<br>>... </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
>     The code has been running on my personal mesh of 6 nodes for about 3 weeks.<br> > Most of my mesh is composed of WRT54G's although it has been running on one or<br>
> two little Atheros-based nodes as well as my x86 laptop.<br>
<br>
</div>So your fix does run both for little and bit endian devices ? (Maybe even for<br>
networks mixed with both) ? :)<br>
<font color="#888888"><br>
Henning<br>
</font></blockquote><div><br></div><div>Sorry for the delay as I've been busy with a lot of other things this week.<br></div><div><br></div><div>Yes, my fixes runs on both little and big endian devices allowing mixed networks.</div>
<div>There's no need to #ifdef things depending on which devices you're compiling for.</div>
<div>The changes essentially affect the little endian devices such as the WRT54G's</div><div>with the Broadcom MIPSEL.  The compiler will generate more code to flip the</div><div>bytes around to network order for the devices.</div>

<div><br></div><div>On the big endian devices, such as the Atheros MIPS, the changes compile down</div><div>to nothing since the hton[ls]() and ntoh[ls]() functions/macros are basically null on</div><div>the big endian devices since they natively use the network byte ordering.</div>

<div><br></div><div>For those really weird machines with weird byte ordering (are there any?) these</div><div>changes should let them play nicely with the other kids now, at least if they're using</div><div>the secure plugin.</div>
<div><br></div><div>I've just pushed the changes so have a look at my changes and see what you think.<br clear="all"></div><div><br></div><div>Thanks!</div><div><br></div><div>     -Rusty-</div><font face="courier new,monospace">-- <br>

   _____                Rusty Haddock  <=>  AE5AE<br>|\/   o \   o             Way out yonder in the<br>|   (  -<  O o      Van Alstyne (TX) Metropolitan Area<br>|/\__V__/       Math illiteracy affects 7 out of 5 people!</font><br>