On Mon, 2008-04-07 at 18:01 +0100, Rae Harbird wrote:
[....]
> I am running olsrd 0.55 on ubuntu gutsy, I have been using the 
> olsr_switch emulator and there seems to be a problem with IP address 
> reported in packets received; addresses are shown reversed. Does anyone 
> have an idea of what could be causing the problem?

Out of the back of my head (and I think I looked once into olsr_switch):
olsr_switch sends a IPv4 address explicitly before the packet over the
(somewhat) simulated network connection. And it sends it IIRC in
host-byteorder. But normal network code (including and especially
low-level helper functions) expects network data in network byte order.

To guess something: So it may well be the case that the IP address comes
in in host byte order and is converted to a string with inet_ntoa()
which actually expects network byteorder.

The simplest fix IMHO would be to send everything in network byte order.

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services



