X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fodp-util.c;h=547e87ed90f93ec4ebdb0bf51999d3f6e06fa986;hb=e468fe85d5a83fe1c5985100ec330708a318ba9f;hp=dd6b6295b5d5c590a2c0980e63ed3febfb7e9f02;hpb=b9298d3f825703063c9538aa37407da43e1e4781;p=openvswitch diff --git a/lib/odp-util.c b/lib/odp-util.c index dd6b6295..547e87ed 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -103,9 +103,9 @@ format_odp_action(struct ds *ds, const struct nlattr *a) const uint8_t *eth; ovs_be32 ip; - if (nl_attr_get_size(a) != odp_action_len(a->nla_len)) { + if (nl_attr_get_size(a) != odp_action_len(nl_attr_type(a))) { ds_put_format(ds, "***bad action: length is %zu, expected %d*** ", - nl_attr_get_size(a), odp_action_len(a->nla_len)); + nl_attr_get_size(a), odp_action_len(nl_attr_type(a))); format_generic_odp_action(ds, a); return; } @@ -171,7 +171,7 @@ format_odp_action(struct ds *ds, const struct nlattr *a) void format_odp_actions(struct ds *ds, const struct nlattr *actions, - unsigned int actions_len) + size_t actions_len) { if (actions_len) { const struct nlattr *a;