X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=utilities%2Fovs-dpctl.c;h=8f2a2bc651312a0de512a670bce47249dc552920;hb=cdee00fd635d1e0f1eeb5d9c009daeb59abd4777;hp=bed50faa26eff5fb735df44c009686febfb03335;hpb=7f8ca6459c37ede8faf13f730bcd4d9f05dfd13b;p=sliver-openvswitch.git diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c index bed50faa2..8f2a2bc65 100644 --- a/utilities/ovs-dpctl.c +++ b/utilities/ovs-dpctl.c @@ -478,11 +478,11 @@ do_dump_flows(int argc OVS_UNUSED, char *argv[]) ds_init(&ds); for (i = 0; i < n_flows; i++) { struct odp_flow *f = &flows[i]; - enum { MAX_ACTIONS = 4096 / sizeof(union odp_action) }; - union odp_action actions[MAX_ACTIONS]; + enum { MAX_ACTIONS = 4096 }; /* An arbitrary but large number. */ + struct nlattr actions[MAX_ACTIONS]; f->actions = actions; - f->n_actions = MAX_ACTIONS; + f->actions_len = sizeof actions; if (!dpif_flow_get(dpif, f)) { ds_clear(&ds); format_odp_flow(&ds, f);