[Devel] lcr portability issue

Ovidiu Sas sip.nslu at gmail.com
Tue Feb 6 03:53:56 CET 2007


Hi all,

The lcr module is broken on big endian platforms.  There are a few issues:
 1. the openserctl script is assuming little endian for storing the IP
address as an unsigned integer.  This should be fixed by pushing the
proper uint into the database (and adjust the display routine).
 2. the print_gws() should use ip_addr2a() to print the IP address
 3. before using the ip_addr2a(), the host to network translation must
be applied (inside do_load_gws() and print_gws() functions)


Regards,
Ovidiu Sas



More information about the Devel mailing list