Re: [sheepdog] The magic number of 12

2015-07-07 Thread Liu Yuan
On Wed, Jul 08, 2015 at 11:10:47AM +0800, Yu Yang wrote: > There is a struct node_id which saves the sheep node address and port as > follows > in internal_proto.h: > > struct node_id { > uint8_t addr[16]; > uint16_t port; > uint8_t io_addr[16]; > uint16_t io_port; >

[sheepdog] The magic number of 12

2015-07-07 Thread Yu Yang
There is a struct node_id which saves the sheep node address and port as follows in internal_proto.h: struct node_id { uint8_t addr[16]; uint16_t port; uint8_t io_addr[16]; uint16_t io_port; uint8_t pad[4]; }; I find that NEITHER network byte order NOR host