X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fbundle.c;h=60a360e1dd7459fb8608d259724d1f99d96bb2fb;hb=003ce655b7116d18c86a74c50391e54990346931;hp=7d00f874e06feffd6254f2014b745c1528630890;hpb=57ad4e9ed5da05b81eba8a7dd3e712201792002d;p=sliver-openvswitch.git diff --git a/lib/bundle.c b/lib/bundle.c index 7d00f874e..60a360e1d 100644 --- a/lib/bundle.c +++ b/lib/bundle.c @@ -99,7 +99,7 @@ bundle_execute(const struct ofpact_bundle *bundle, return execute_ab(bundle, slave_enabled, aux); default: - NOT_REACHED(); + OVS_NOT_REACHED(); } } @@ -165,8 +165,8 @@ bundle_from_openflow(const struct nx_action_bundle *nab, } if (slaves_size < bundle->n_slaves * sizeof(ovs_be16)) { - VLOG_WARN_RL(&rl, "Nicira action %"PRIu16" only has %zu bytes " - "allocated for slaves. %zu bytes are required for " + VLOG_WARN_RL(&rl, "Nicira action %"PRIu16" only has %"PRIuSIZE" bytes " + "allocated for slaves. %"PRIuSIZE" bytes are required for " "%"PRIu16" slaves.", subtype, slaves_size, bundle->n_slaves * sizeof(ovs_be16), bundle->n_slaves); error = OFPERR_OFPBAC_BAD_LEN; @@ -177,7 +177,7 @@ bundle_from_openflow(const struct nx_action_bundle *nab, ofpbuf_put(ofpacts, &ofp_port, sizeof ofp_port); } - bundle = ofpacts->l2; + bundle = ofpacts->frame; ofpact_update_len(ofpacts, &bundle->ofpact); if (!error) { @@ -288,7 +288,7 @@ bundle_parse__(const char *s, char **save_ptr, } ofpbuf_put(ofpacts, &slave_port, sizeof slave_port); - bundle = ofpacts->l2; + bundle = ofpacts->frame; bundle->n_slaves++; } ofpact_update_len(ofpacts, &bundle->ofpact);