---
** [tickets:#824] OSAF: little endian vs. big endian systems**
**Status:** unassigned
**Milestone:** future
**Created:** Wed Mar 26, 2014 04:27 PM UTC by Zoran Milinkovic
**Last Updated:** Wed Mar 26, 2014 04:27 PM UTC
**Owner:** Zoran Milinkovic
Has anyone tried to run OpenSAF in "mixed endian cluster", with both little
endian and big endian nodes ?
According to the code, it seems that OpenSAF has been written for little endian
systems, and having both a node with a little endian system and a node with a
big endian system is not possible.
Code of ncs_encode_* and ncs_decode_* functions had been written for little
endian systems, and it works correctly. Integers are converted into network
byte order (big endian), while looking from big endian system perspective, it's
incorrect. Integers are converted in the opposite way.
Also, macros m_NCS_OS_HTONLL_P() and m_NCS_OS_NTOHLL_P that should replace
non-existing htonll and ntohll functions had been written for little endian
systems. they don't work correctly in big endian systems.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets