[PATCH] Use ntohs instead of htons to convert ce_flags to host byte order