changed BCP_CODE and port to use unit32_t and ntohl