X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-print.c;h=5103c3e10e1f7521acc65c90397ff4ca5492fc1c;hb=refs%2Fheads%2Fbsd-port;hp=9f77c5a013a2a38d87423c419bf95380d8265d25;hpb=b22426cc6f9cb45ffedde0ae0c9f94b12c0d0f86;p=sliver-openvswitch.git diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 9f77c5a01..5103c3e10 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -113,6 +113,13 @@ ofp_print_packet_in(struct ds *string, const struct ofp_header *oh, } } + if (pin.fmd.metadata_mask) { + ds_put_format(string, " metadata=0x%"PRIx64, ntohll(pin.fmd.metadata)); + if (pin.fmd.metadata_mask != htonll(UINT64_MAX)) { + ds_put_format(string, "/0x%"PRIx64, ntohll(pin.fmd.metadata_mask)); + } + } + for (i = 0; i < FLOW_N_REGS; i++) { if (pin.fmd.reg_masks[i]) { ds_put_format(string, " reg%d=0x%"PRIx32, i, pin.fmd.regs[i]); @@ -1610,6 +1617,9 @@ ofp_to_string__(const struct ofp_header *oh, case OFP11_VERSION: ds_put_cstr(string, " (OF1.1)"); break; + case OFP12_VERSION: + ds_put_cstr(string, " (OF1.2)"); + break; default: ds_put_format(string, " (OF 0x%02"PRIx8")", oh->version); break;