On Tue, Jun 12, 2012 at 12:32:23AM -0700, Ben Pfaff wrote: > Probably incomplete.
The following seems to be needed: diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 439096f..625b809 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -701,7 +701,7 @@ ofp_print_flow_mod(struct ds *s, const struct ofp_header *oh, ds_put_char(s, ' '); if (verbosity >= 3 && code == OFPUTIL_OFPT_FLOW_MOD) { - const struct ofp_flow_mod *ofm = (const struct ofp_flow_mod *) oh; + const struct ofp10_flow_mod *ofm = (const struct ofp10_flow_mod *) oh; ofp10_match_print(s, &ofm->match, verbosity); /* ofp_print_match() doesn't print priority. */ diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 11c467e..fb39aa4 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -727,7 +727,7 @@ static const struct ofputil_msg_type ofputil_msg_types[] = { OFPT10(PACKET_OUT, OFPT10_PACKET_OUT, sizeof(struct ofp_packet_out), 1), OFPT10(FLOW_MOD, OFPT10_FLOW_MOD, - sizeof(struct ofp_flow_mod), 1), + sizeof(struct ofp10_flow_mod), 1), OFPT10(PORT_MOD, OFPT10_PORT_MOD, sizeof(struct ofp10_port_mod), 0), OFPT10(BARRIER_REQUEST, OFPT10_BARRIER_REQUEST, @@ -1502,7 +1502,7 @@ ofputil_decode_flow_mod(struct ofputil_flow_mod *fm, ofputil_decode_msg_type(oh, &type); if (ofputil_msg_type_code(type) == OFPUTIL_OFPT_FLOW_MOD) { /* Standard OpenFlow flow_mod. */ - const struct ofp_flow_mod *ofm; + const struct ofp10_flow_mod *ofm; uint16_t priority; enum ofperr error; _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev