[Devel] [ openser-Bugs-1653584 ] lcr broken on big endian platforms

SourceForge.net noreply at sourceforge.net
Wed Feb 21 05:02:46 CET 2007


Bugs item #1653584, was opened at 2007-02-06 22:34
Message generated for change (Comment added) made by juhe
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1653584&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: ver devel
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Ovidiu Sas (osas)
Assigned to: Juha Heinanen (juhe)
Summary: lcr broken on big endian platforms

Initial Comment:
See:
http://openser.org/pipermail/devel/2007-February/005688.html

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)


The attached patch fixed the problem.


----------------------------------------------------------------------

>Comment By: Juha Heinanen (juhe)
Date: 2007-02-21 06:02

Message:
Logged In: YES 
user_id=1332122
Originator: NO

I didn't fix openserctl or other scripts that add gw entries to databases
because I'm not familiar with them.  I'll now close this ticket.  A new one
should be created for the gw table update scripts.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1653584&group_id=139143



More information about the Devel mailing list