aboutsummaryrefslogtreecommitdiff
path: root/lib/nx-match.h
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2010-12-16 13:57:21 -0800
committerBen Pfaff <blp@nicira.com>2010-12-17 14:31:40 -0800
commit36b4c892f6e2376f3b9dde840a9623570e97249c (patch)
tree4a410e5229a93962d1042b7d5985320393e73809 /lib/nx-match.h
parent21dd5f55a40fa16e4d9fae1a354f51b0a2992e22 (diff)
nx-match: Rename and export functions for parsing and formatting subfields.
These will be used from other source files in upcoming commits.
Diffstat (limited to 'lib/nx-match.h')
-rw-r--r--lib/nx-match.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/nx-match.h b/lib/nx-match.h
index 07d695de..bd4fea27 100644
--- a/lib/nx-match.h
+++ b/lib/nx-match.h
@@ -56,6 +56,10 @@ void nxm_execute_reg_load(const struct nx_action_reg_load *, struct flow *);
int nxm_field_bytes(uint32_t header);
int nxm_field_bits(uint32_t header);
+const char *nxm_parse_field_bits(const char *s,
+ uint32_t *headerp, int *ofsp, int *n_bitsp);
+void nxm_format_field_bits(struct ds *, uint32_t header, int ofs, int n_bits);
+
/* Dealing with the 'ofs_nbits' members of struct nx_action_reg_load and struct
* nx_action_multipath. */