diff options
author | Ben Pfaff <blp@nicira.com> | 2011-11-11 15:22:56 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2011-11-17 10:11:54 -0800 |
commit | 7202cbe5521ed327ea0c9c959493a08ad2bf8d01 (patch) | |
tree | 69c6d02f5105c3d4a7e8cceea4d4304e65c9482c /lib/odp-util.h | |
parent | b2a60db8e407196d0e6634379e8aedbfe2ec774c (diff) |
odp-util: New function odp_actions_from_string().
An upcoming commit will add a user. The only planned users for now are
part of unit tests themselves, so it doesn't seem important to unit test
it.
Diffstat (limited to 'lib/odp-util.h')
-rw-r--r-- | lib/odp-util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/odp-util.h b/lib/odp-util.h index b943c8c5..d2e43bd8 100644 --- a/lib/odp-util.h +++ b/lib/odp-util.h @@ -59,8 +59,11 @@ odp_port_to_ofp_port(uint16_t odp_port) return odp_port; } } + void format_odp_actions(struct ds *, const struct nlattr *odp_actions, size_t actions_len); +int odp_actions_from_string(const char *, const struct shash *port_names, + struct ofpbuf *odp_actions); /* Upper bound on the length of a nlattr-formatted flow key. The longest * nlattr-formatted flow key would be: |