of_list_bsn_flow_checksum_bucket_stats_entry_t * of_list_bsn_flow_checksum_bucket_stats_entry_new(of_version_t version) { of_list_bsn_flow_checksum_bucket_stats_entry_t *obj; int bytes; bytes = of_object_fixed_len[version][OF_LIST_BSN_FLOW_CHECKSUM_BUCKET_STATS_ENTRY] + of_object_extra_len[version][OF_LIST_BSN_FLOW_CHECKSUM_BUCKET_STATS_ENTRY]; if ((obj = (of_list_bsn_flow_checksum_bucket_stats_entry_t *)of_object_new(OF_WIRE_BUFFER_MAX_LENGTH)) == NULL) { return NULL; } of_list_bsn_flow_checksum_bucket_stats_entry_init(obj, version, bytes, 0); return obj; }
of_list_bsn_flow_checksum_bucket_stats_entry_t * of_list_bsn_flow_checksum_bucket_stats_entry_new(of_version_t version) { of_list_bsn_flow_checksum_bucket_stats_entry_t *obj; int bytes; bytes = of_object_fixed_len[version][OF_LIST_BSN_FLOW_CHECKSUM_BUCKET_STATS_ENTRY] + of_object_extra_len[version][OF_LIST_BSN_FLOW_CHECKSUM_BUCKET_STATS_ENTRY]; /* Allocate a maximum-length wire buffer assuming we'll be appending to it. */ if ((obj = (of_list_bsn_flow_checksum_bucket_stats_entry_t *)of_object_new(OF_WIRE_BUFFER_MAX_LENGTH)) == NULL) { return NULL; } of_list_bsn_flow_checksum_bucket_stats_entry_init(obj, version, bytes, 0); return obj; }