opentechinstitute / commotiond

The system management daemon for the Commotion Wireless Project.
https://commotionwireless.net
GNU Affero General Public License v3.0
26 stars 21 forks source link

Add byte-order handling to numerical elements in co_obj #111

Open jheretic opened 9 years ago

jheretic commented 9 years ago

In order for the objects in the co_obj library to be truly network portable, they need proper handling of byte ordering. We need to wrap access to numerical elements with accessor functions using the appropriate ntoh and hton calls.