mirror_corosync/test
Xia Li ca6051e80c Convert the nodeid byte order to be aligned with network order
When using corosync with clear_node_high_bit setting to yes,
the highest bit is cleared.  When all the cluster nodes are in
one subnet, we probably configure the IP addresses as follows:

node1: 147.2.207.64
node2: 147.2.207.192

If the byte order of the nodeid is little endian, wiping off the
highest bit will make the two nodes have the same nodeid!

This patch fixes this by converting the nodeid to network order.

Signed-off-by: Xia Li <xli@suse.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2013-03-19 16:39:59 +01:00
..
scripts Split openais and corosync tree into two seperate repositories. 2008-08-05 13:23:46 +00:00
.gitignore Update .gitignore files 2012-11-22 11:13:30 +01:00
cpgbench.c Add header files when needed 2012-09-03 09:34:31 +02:00
cpgbenchzc.c TEST: fix the print out when cpg_finalize() fails 2011-08-09 10:37:15 +10:00
cpgbound.c Add header files when needed 2012-09-03 09:34:31 +02:00
cpgverify.c Add header files when needed 2012-09-03 09:34:31 +02:00
Makefile.am build: clean AM_CFLAGS and AM_CPPFLAGS usage around 2012-09-07 09:04:07 +02:00
ploadstart.sh build: make path to bash configurable at build time 2012-08-28 15:14:49 +02:00
stress_cpgcontext.c Remove libtomcrypt 2012-03-13 09:19:47 +01:00
stress_cpgfdget.c Remove libtomcrypt 2012-03-13 09:19:47 +01:00
stress_cpgzc.c Add stress test case for cpg and coroipcc zero copy buffer alloc and free 2009-07-10 12:05:48 +00:00
testcpg2.c Add header files when needed 2012-09-03 09:34:31 +02:00
testcpg.c Convert the nodeid byte order to be aligned with network order 2013-03-19 16:39:59 +01:00
testcpgzc.c testcpgzc: fgets buffer to really allocated size 2011-06-03 11:11:28 +02:00
testmake.sh remove all trailing blanks 2009-04-22 08:03:55 +00:00
testparse.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
testquorum.c testquorum: check for quorum_dispatch return code 2012-02-09 16:49:25 +01:00
testsam.c Move SAM to use CMAP service 2011-12-15 09:19:18 +01:00
testtimer.c remove all trailing blanks 2009-04-22 08:03:55 +00:00
testvotequorum1.c votequorum: external defines should all be prefixed with VOTEQUORUM_ 2012-08-07 11:07:17 +02:00
testvotequorum2.c votequorum: make the last QDEVICE define name consistent with everything else 2012-08-07 11:07:17 +02:00
testzcgc.c add __attribute__((noreturn)) to functions that always exit. 2010-05-19 04:34:53 +00:00