- ofp_print_packet(stdout, packet->data, packet->size);
- ovs_hex_dump(stdout, packet->data, packet->size, 0, true);
+ ofp_print_packet(stdout, ofpbuf_data(packet), ofpbuf_size(packet));
+ ovs_hex_dump(stdout, ofpbuf_data(packet), ofpbuf_size(packet), 0, true);