X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnx-match.h;h=bd4fea27e092b79478d7a50468fe538a2a5865b0;hb=0acae9fdc58c524f0fe6877b3a8197dd09a279d2;hp=07d695de015b9eae3d192f830a186f0f6c48a8e9;hpb=4291acd23d801a0274f5a4f8107b2a907f4fbdd5;p=openvswitch 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. */