void of_oxm_wire_object_id_get(of_object_t *obj, of_object_id_t *id) { uint32_t type_len; of_wire_buffer_t *wbuf; _GET_OXM_TYPE_LEN(obj, &type_len, wbuf); *id = of_oxm_to_object_id(type_len, obj->version); }
void of_oxm_wire_object_id_get(of_object_t *obj, of_object_id_t *id) { uint32_t type_len; int wire_type; of_wire_buffer_t *wbuf; _GET_OXM_TYPE_LEN(obj, &type_len, wbuf); wire_type = OF_OXM_MASKED_TYPE_GET(type_len); *id = of_oxm_to_object_id(wire_type, obj->version); }